home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-09-28 | 2.3 MB | [STAK/WILD] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| HyperCard Stack (archive/hypercard)
| idMeta
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, busy, Fri Dec 25 17:15:38 1992, modified Tue Sep 28 17:25:04 1993, creator HyperCard, type HyperCard stack, 337408 bytes "Planetary Taxi" , at 0x52680 2069504 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Mac HyperCard stack (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [STAK] |
macFileCreator | [WILD] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 50 6c 61 6e 65 74 | 61 72 79 20 54 61 78 69 |..Planet|ary Taxi|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 05 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 05 26 00 00 | 1f 94 00 a7 61 38 8a a8 |.....&..|....a8..|
|00000060| ce 5c 30 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.\0.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 09 dc 00 00 |........|........|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 05 26 00 | 00 00 70 00 00 00 00 00 |......&.|..p.....|
|000000a0| 00 00 00 01 00 00 00 07 | 00 00 0a cb 00 00 00 64 |........|.......d|
|000000b0| 00 00 0b f5 00 00 10 a3 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 20 9a 00 00 00 00 | 00 05 00 00 10 00 00 00 |.. .....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |........|........|
|000000f0| dd ae ed ca 00 00 00 00 | 00 3a 00 40 01 ba 02 40 |........|.:.@...@|
|00000100| 00 00 00 00 01 e0 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d d9 00 00 0c da | 01 80 02 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 69 64 6c 65 0d | 67 6c 6f 62 61 6c 20 67 |on idle.|global g|
|00000690| 53 6d 61 6c 6c 53 63 72 | 65 65 6e 2c 20 67 4d 42 |SmallScr|een, gMB|
|000006a0| 56 69 73 69 62 6c 65 2c | 20 67 4d 65 6e 75 42 61 |Visible,| gMenuBa|
|000006b0| 72 52 65 63 74 20 2d 2d | 20 6d 65 6e 75 20 62 61 |rRect --| menu ba|
|000006c0| 72 20 63 6f 6e 74 72 6f | 6c 0d 69 66 20 67 53 6d |r contro|l.if gSm|
|000006d0| 61 6c 6c 53 63 72 65 65 | 6e 3d 22 74 72 75 65 22 |allScree|n="true"|
|000006e0| 20 74 68 65 6e 0d 69 66 | 20 6d 6f 75 73 65 4c 6f | then.if| mouseLo|
|000006f0| 63 28 29 20 69 73 20 77 | 69 74 68 69 6e 20 67 4d |c() is w|ithin gM|
|00000700| 65 6e 75 42 61 72 52 65 | 63 74 20 74 68 65 6e 0d |enuBarRe|ct then.|
|00000710| 73 68 6f 77 20 6d 65 6e | 75 42 61 72 0d 70 75 74 |show men|uBar.put|
|00000720| 20 22 74 72 75 65 22 20 | 69 6e 74 6f 20 67 4d 42 | "true" |into gMB|
|00000730| 56 69 73 69 62 6c 65 0d | 65 6c 73 65 20 69 66 20 |Visible.|else if |
|00000740| 67 4d 65 6e 75 62 61 72 | 52 65 63 74 20 69 73 20 |gMenubar|Rect is |
|00000750| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 68 |not empt|y then.h|
|00000760| 69 64 65 20 6d 65 6e 75 | 42 61 72 0d 70 75 74 20 |ide menu|Bar.put |
|00000770| 22 66 61 6c 73 65 22 20 | 69 6e 74 6f 20 67 4d 42 |"false" |into gMB|
|00000780| 56 69 73 69 62 6c 65 0d | 65 6e 64 20 69 66 0d 65 |Visible.|end if.e|
|00000790| 6e 64 20 69 66 0d 70 61 | 73 73 20 69 64 6c 65 0d |nd if.pa|ss idle.|
|000007a0| 65 6e 64 20 69 64 6c 65 | 0d 0d 6f 6e 20 6f 70 65 |end idle|..on ope|
|000007b0| 6e 53 74 61 63 6b 0d 69 | 66 20 77 72 6f 6e 67 53 |nStack.i|f wrongS|
|000007c0| 74 61 63 6b 28 29 20 74 | 68 65 6e 20 70 61 73 73 |tack() t|hen pass|
|000007d0| 20 6f 70 65 6e 53 74 61 | 63 6b 0d 64 6f 43 68 6f | openSta|ck.doCho|
|000007e0| 72 65 73 20 22 65 6e 74 | 65 72 22 0d 73 65 6e 64 |res "ent|er".send|
|000007f0| 20 22 68 61 6e 64 6c 65 | 4d 65 6e 75 42 61 72 22 | "handle|MenuBar"|
|00000800| 20 74 6f 20 63 64 20 69 | 64 20 33 30 36 31 0d 70 | to cd i|d 3061.p|
|00000810| 61 73 73 20 6f 70 65 6e | 53 74 61 63 6b 0d 65 6e |ass open|Stack.en|
|00000820| 64 20 6f 70 65 6e 53 74 | 61 63 6b 0d 0d 6f 6e 20 |d openSt|ack..on |
|00000830| 63 6c 6f 73 65 53 74 61 | 63 6b 0d 69 66 20 77 72 |closeSta|ck.if wr|
|00000840| 6f 6e 67 53 74 61 63 6b | 28 29 20 74 68 65 6e 20 |ongStack|() then |
|00000850| 70 61 73 73 20 63 6c 6f | 73 65 53 74 61 63 6b 0d |pass clo|seStack.|
|00000860| 63 6c 6f 73 65 4d 6f 76 | 69 65 73 0d 64 6f 43 68 |closeMov|ies.doCh|
|00000870| 6f 72 65 73 20 22 65 78 | 69 74 22 0d 70 75 74 20 |ores "ex|it".put |
|00000880| 67 65 74 44 69 72 65 63 | 74 69 6f 6e 28 22 63 6c |getDirec|tion("cl|
|00000890| 65 61 6e 75 70 22 29 20 | 69 6e 74 6f 20 6e 6f 74 |eanup") |into not|
|000008a0| 68 69 6e 67 0d 70 61 73 | 73 20 63 6c 6f 73 65 53 |hing.pas|s closeS|
|000008b0| 74 61 63 6b 0d 65 6e 64 | 20 63 6c 6f 73 65 53 74 |tack.end| closeSt|
|000008c0| 61 63 6b 0d 0d 6f 6e 20 | 72 65 73 75 6d 65 53 74 |ack..on |resumeSt|
|000008d0| 61 63 6b 0d 69 66 20 77 | 72 6f 6e 67 53 74 61 63 |ack.if w|rongStac|
|000008e0| 6b 28 29 20 74 68 65 6e | 20 70 61 73 73 20 72 65 |k() then| pass re|
|000008f0| 73 75 6d 65 53 74 61 63 | 6b 0d 6d 61 78 4d 65 6d |sumeStac|k.maxMem|
|00000900| 0d 64 6f 43 68 6f 72 65 | 73 20 22 65 6e 74 65 72 |.doChore|s "enter|
|00000910| 22 0d 6f 70 65 6e 42 61 | 63 6b 67 72 6f 75 6e 64 |".openBa|ckground|
|00000920| 0d 73 65 6e 64 20 6f 70 | 65 6e 43 61 72 64 20 74 |.send op|enCard t|
|00000930| 6f 20 63 61 72 64 0d 70 | 61 73 73 20 72 65 73 75 |o card.p|ass resu|
|00000940| 6d 65 53 74 61 63 6b 0d | 65 6e 64 20 72 65 73 75 |meStack.|end resu|
|00000950| 6d 65 53 74 61 63 6b 0d | 0d 6f 6e 20 73 75 73 70 |meStack.|.on susp|
|00000960| 65 6e 64 53 74 61 63 6b | 0d 69 66 20 77 72 6f 6e |endStack|.if wron|
|00000970| 67 53 74 61 63 6b 28 29 | 20 74 68 65 6e 20 70 61 |gStack()| then pa|
|00000980| 73 73 20 73 75 73 70 65 | 6e 64 53 74 61 63 6b 0d |ss suspe|ndStack.|
|00000990| 6d 61 78 4d 65 6d 0d 64 | 6f 43 68 6f 72 65 73 20 |maxMem.d|oChores |
|000009a0| 22 65 78 69 74 22 0d 73 | 65 6e 64 20 63 6c 6f 73 |"exit".s|end clos|
|000009b0| 65 43 61 72 64 20 74 6f | 20 63 61 72 64 0d 63 6c |eCard to| card.cl|
|000009c0| 6f 73 65 42 61 63 6b 67 | 72 6f 75 6e 64 0d 70 61 |oseBackg|round.pa|
|000009d0| 73 73 20 73 75 73 70 65 | 6e 64 53 74 61 63 6b 0d |ss suspe|ndStack.|
|000009e0| 65 6e 64 20 73 75 73 70 | 65 6e 64 53 74 61 63 6b |end susp|endStack|
|000009f0| 0d 0d 6f 6e 20 63 6c 6f | 73 65 43 61 72 64 0d 69 |..on clo|seCard.i|
|00000a00| 66 20 77 72 6f 6e 67 53 | 74 61 63 6b 28 29 20 74 |f wrongS|tack() t|
|00000a10| 68 65 6e 20 70 61 73 73 | 20 63 6c 6f 73 65 43 61 |hen pass| closeCa|
|00000a20| 72 64 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |rd.set c|ursor to|
|00000a30| 20 77 61 74 63 68 0d 70 | 61 73 73 20 63 6c 6f 73 | watch.p|ass clos|
|00000a40| 65 43 61 72 64 0d 65 6e | 64 20 63 6c 6f 73 65 43 |eCard.en|d closeC|
|00000a50| 61 72 64 0d 0d 6f 6e 20 | 63 6f 6d 6d 61 6e 64 6b |ard..on |commandk|
|00000a60| 65 79 64 6f 77 6e 20 6b | 65 79 50 72 65 73 73 0d |eydown k|eyPress.|
|00000a70| 67 6c 6f 62 61 6c 20 67 | 4d 65 6e 75 42 61 72 56 |global g|MenuBarV|
|00000a80| 69 73 69 62 6c 65 2c 20 | 67 48 65 6c 70 49 73 41 |isible, |gHelpIsA|
|00000a90| 63 74 69 76 65 2c 20 67 | 4d 65 6e 75 42 61 72 52 |ctive, g|MenuBarR|
|00000aa0| 65 63 74 0d 69 66 20 77 | 72 6f 6e 67 53 74 61 63 |ect.if w|rongStac|
|00000ab0| 6b 28 29 20 74 68 65 6e | 20 70 61 73 73 20 63 6f |k() then| pass co|
|00000ac0| 6d 6d 61 6e 64 6b 65 79 | 64 6f 77 6e 0d 69 66 20 |mmandkey|down.if |
|00000ad0| 6b 65 79 50 72 65 73 73 | 20 69 73 20 69 6e 20 22 |keyPress| is in "|
|00000ae0| 2a 71 22 20 6f 72 20 6b | 65 79 70 72 65 73 73 20 |*q" or k|eypress |
|00000af0| 3d 20 22 20 22 20 74 68 | 65 6e 0d 69 66 20 6b 65 |= " " th|en.if ke|
|00000b00| 79 50 72 65 73 73 20 3d | 20 22 2a 22 20 74 68 65 |yPress =| "*" the|
|00000b10| 6e 0d 73 65 74 20 63 75 | 72 73 6f 72 20 74 6f 20 |n.set cu|rsor to |
|00000b20| 77 61 74 63 68 0d 73 65 | 74 20 75 73 65 72 6c 65 |watch.se|t userle|
|00000b30| 76 65 6c 20 74 6f 20 35 | 0d 72 65 73 65 74 20 6d |vel to 5|.reset m|
|00000b40| 65 6e 75 62 61 72 0d 73 | 65 6e 64 20 22 68 61 6e |enubar.s|end "han|
|00000b50| 64 6c 65 4d 65 6e 75 42 | 61 72 22 20 74 6f 20 63 |dleMenuB|ar" to c|
|00000b60| 64 20 69 64 20 33 30 36 | 31 0d 73 68 6f 77 20 6d |d id 306|1.show m|
|00000b70| 73 67 0d 65 6c 73 65 20 | 69 66 20 28 63 68 61 72 |sg.else |if (char|
|00000b80| 54 6f 4e 75 6d 28 6b 65 | 79 50 72 65 73 73 29 20 |ToNum(ke|yPress) |
|00000b90| 3d 20 33 32 29 20 74 68 | 65 6e 20 2d 2d 20 73 6d |= 32) th|en -- sm|
|00000ba0| 61 6c 6c 20 73 63 72 65 | 65 6e 73 0d 69 66 20 67 |all scre|ens.if g|
|00000bb0| 53 6d 61 6c 6c 53 63 72 | 65 65 6e 20 3d 20 22 74 |SmallScr|een = "t|
|00000bc0| 72 75 65 22 20 74 68 65 | 6e 0d 69 66 20 67 4d 42 |rue" the|n.if gMB|
|00000bd0| 56 69 73 69 62 6c 65 20 | 3d 20 22 66 61 6c 73 65 |Visible |= "false|
|00000be0| 22 20 74 68 65 6e 0d 73 | 68 6f 77 20 6d 65 6e 75 |" then.s|how menu|
|00000bf0| 42 61 72 0d 70 75 74 20 | 22 74 72 75 65 22 20 69 |Bar.put |"true" i|
|00000c00| 6e 74 6f 20 67 4d 42 56 | 69 73 69 62 6c 65 0d 70 |nto gMBV|isible.p|
|00000c10| 75 74 20 22 22 20 69 6e | 74 6f 20 67 4d 65 6e 75 |ut "" in|to gMenu|
|00000c20| 42 61 72 52 65 63 74 0d | 65 6c 73 65 0d 68 69 64 |BarRect.|else.hid|
|00000c30| 65 20 6d 65 6e 75 42 61 | 72 0d 70 75 74 20 22 66 |e menuBa|r.put "f|
|00000c40| 61 6c 73 65 22 20 69 6e | 74 6f 20 67 4d 42 56 69 |alse" in|to gMBVi|
|00000c50| 73 69 62 6c 65 0d 70 75 | 74 20 22 30 2c 30 2c 35 |sible.pu|t "0,0,5|
|00000c60| 31 32 2c 32 30 22 20 69 | 6e 74 6f 20 67 4d 65 6e |12,20" i|nto gMen|
|00000c70| 75 42 61 72 52 65 63 74 | 0d 65 6e 64 20 69 66 0d |uBarRect|.end if.|
|00000c80| 65 6e 64 20 69 66 0d 65 | 6c 73 65 20 69 66 20 6b |end if.e|lse if k|
|00000c90| 65 79 50 72 65 73 73 20 | 3d 20 22 71 22 20 74 68 |eyPress |= "q" th|
|00000ca0| 65 6e 0d 71 75 69 74 50 | 6c 61 6e 65 74 61 72 79 |en.quitP|lanetary|
|00000cb0| 54 61 78 69 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |Taxi.end| if.end |
|00000cc0| 69 66 0d 70 61 73 73 20 | 63 6f 6d 6d 61 6e 64 6b |if.pass |commandk|
|00000cd0| 65 79 64 6f 77 6e 0d 65 | 6e 64 20 63 6f 6d 6d 61 |eydown.e|nd comma|
|00000ce0| 6e 64 6b 65 79 64 6f 77 | 6e 0d 0d 6f 6e 20 6d 6f |ndkeydow|n..on mo|
|00000cf0| 76 65 57 69 6e 64 6f 77 | 0d 67 6c 6f 62 61 6c 20 |veWindow|.global |
|00000d00| 67 4f 6c 64 54 6f 70 4c | 65 66 74 0d 69 66 20 67 |gOldTopL|eft.if g|
|00000d10| 4f 6c 64 54 6f 70 4c 65 | 66 74 20 69 73 20 61 20 |OldTopLe|ft is a |
|00000d20| 70 6f 69 6e 74 20 74 68 | 65 6e 0d 70 75 74 20 28 |point th|en.put (|
|00000d30| 6c 65 66 74 20 6f 66 20 | 63 64 20 77 69 6e 64 6f |left of |cd windo|
|00000d40| 77 20 2d 20 69 74 65 6d | 20 31 20 6f 66 20 67 4f |w - item| 1 of gO|
|00000d50| 6c 64 54 6f 70 4c 65 66 | 74 29 20 69 6e 74 6f 20 |ldTopLef|t) into |
|00000d60| 64 58 0d 70 75 74 20 28 | 74 6f 70 20 6f 66 20 63 |dX.put (|top of c|
|00000d70| 64 20 77 69 6e 64 6f 77 | 20 2d 20 69 74 65 6d 20 |d window| - item |
|00000d80| 32 20 6f 66 20 67 4f 6c | 64 54 6f 70 4c 65 66 74 |2 of gOl|dTopLeft|
|00000d90| 29 20 69 6e 74 6f 20 64 | 59 0d 65 6c 73 65 0d 70 |) into d|Y.else.p|
|00000da0| 75 74 20 30 20 69 6e 74 | 6f 20 64 58 0d 70 75 74 |ut 0 int|o dX.put|
|00000db0| 20 30 20 69 6e 74 6f 20 | 64 59 0d 65 6e 64 20 69 | 0 into |dY.end i|
|00000dc0| 66 0d 70 75 74 20 74 6f | 70 6c 65 66 74 20 6f 66 |f.put to|pleft of|
|00000dd0| 20 63 64 20 77 69 6e 64 | 6f 77 20 69 6e 74 6f 20 | cd wind|ow into |
|00000de0| 67 4f 6c 64 54 6f 70 4c | 65 66 74 0d 72 65 70 65 |gOldTopL|eft.repe|
|00000df0| 61 74 20 77 69 74 68 20 | 4b 3d 31 20 74 6f 20 6e |at with |K=1 to n|
|00000e00| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|00000e10| 6e 20 74 68 65 20 77 69 | 6e 64 6f 77 73 0d 67 65 |n the wi|ndows.ge|
|00000e20| 74 20 6f 77 6e 65 72 20 | 6f 66 20 77 69 6e 64 6f |t owner |of windo|
|00000e30| 77 20 4b 0d 69 66 20 69 | 74 3d 22 51 54 6d 6f 76 |w K.if i|t="QTmov|
|00000e40| 69 65 22 20 6f 72 20 69 | 74 3d 22 22 20 74 68 65 |ie" or i|t="" the|
|00000e50| 6e 0d 73 65 74 20 6c 6f | 63 20 6f 66 20 77 69 6e |n.set lo|c of win|
|00000e60| 64 6f 77 20 4b 20 74 6f | c2 0d 69 74 65 6d 20 31 |dow K to|..item 1|
|00000e70| 20 6f 66 20 6c 6f 63 20 | 6f 66 20 77 69 6e 64 6f | of loc |of windo|
|00000e80| 77 20 4b 20 2b 20 64 58 | 2c c2 0d 69 74 65 6d 20 |w K + dX|,..item |
|00000e90| 32 20 6f 66 20 6c 6f 63 | 20 6f 66 20 77 69 6e 64 |2 of loc| of wind|
|00000ea0| 6f 77 20 4b 20 2b 20 64 | 59 0d 65 6e 64 20 69 66 |ow K + d|Y.end if|
|00000eb0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 70 61 73 73 |.end rep|eat.pass|
|00000ec0| 20 6d 6f 76 65 57 69 6e | 64 6f 77 0d 65 6e 64 20 | moveWin|dow.end |
|00000ed0| 6d 6f 76 65 57 69 6e 64 | 6f 77 0d 0d 6f 6e 20 61 |moveWind|ow..on a|
|00000ee0| 72 72 6f 77 4b 65 79 0d | 2d 2d 20 74 72 61 70 0d |rrowKey.|-- trap.|
|00000ef0| 65 6e 64 20 61 72 72 6f | 77 4b 65 79 0d 0d 6f 6e |end arro|wKey..on|
|00000f00| 20 64 6f 43 68 6f 72 65 | 73 20 65 6e 74 65 72 4f | doChore|s enterO|
|00000f10| 72 45 78 69 74 20 2d 2d | 20 73 61 76 65 73 20 48 |rExit --| saves H|
|00000f20| 43 20 67 6c 6f 62 61 6c | 20 70 72 6f 70 65 72 74 |C global| propert|
|00000f30| 69 65 73 0d 67 6c 6f 62 | 61 6c 20 67 53 61 76 47 |ies.glob|al gSavG|
|00000f40| 6c 6f 62 6c 73 20 2d 2d | 20 73 74 61 74 69 63 0d |lobls --| static.|
|00000f50| 67 6c 6f 62 61 6c 20 67 | 4c 61 73 74 43 6c 69 63 |global g|LastClic|
|00000f60| 6b 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 6d 61 |k.lock s|creen.ma|
|00000f70| 78 6d 65 6d 0d 69 66 20 | 65 6e 74 65 72 4f 72 45 |xmem.if |enterOrE|
|00000f80| 78 69 74 3d 22 65 6e 74 | 65 72 22 20 74 68 65 6e |xit="ent|er" then|
|00000f90| 20 2d 2d 20 65 6e 74 65 | 72 69 6e 67 20 73 74 61 | -- ente|ring sta|
|00000fa0| 63 6b 0d 70 75 74 20 74 | 68 65 20 75 73 65 72 4c |ck.put t|he userL|
|00000fb0| 65 76 65 6c 20 69 6e 74 | 6f 20 6c 69 6e 65 20 31 |evel int|o line 1|
|00000fc0| 20 6f 66 20 67 53 61 76 | 47 6c 6f 62 6c 73 0d 70 | of gSav|Globls.p|
|00000fd0| 75 74 20 74 68 65 20 62 | 6c 69 6e 64 54 79 70 69 |ut the b|lindTypi|
|00000fe0| 6e 67 20 69 6e 74 6f 20 | 6c 69 6e 65 20 32 20 6f |ng into |line 2 o|
|00000ff0| 66 20 67 53 61 76 47 6c | 6f 62 6c 73 0d 70 75 74 |f gSavGl|obls.put|
|00001000| 20 74 68 65 20 6c 6f 6e | 67 57 69 6e 64 6f 77 54 | the lon|gWindowT|
|00001010| 49 74 6c 65 73 20 69 6e | 74 6f 20 6c 69 6e 65 20 |Itles in|to line |
|00001020| 33 20 6f 66 20 67 53 61 | 76 47 6c 6f 62 6c 73 0d |3 of gSa|vGlobls.|
|00001030| 73 65 74 20 75 73 65 72 | 4c 65 76 65 6c 20 74 6f |set user|Level to|
|00001040| 20 32 0d 73 65 74 20 62 | 6c 69 6e 64 54 79 70 69 | 2.set b|lindTypi|
|00001050| 6e 67 20 74 6f 20 66 61 | 6c 73 65 0d 69 66 20 6e |ng to fa|lse.if n|
|00001060| 6f 74 20 69 6e 73 74 61 | 6c 6c 43 6f 6c 6f 72 69 |ot insta|llColori|
|00001070| 7a 65 48 43 28 29 20 74 | 68 65 6e 0d 71 75 69 74 |zeHC() t|hen.quit|
|00001080| 50 6c 61 6e 65 74 61 72 | 79 54 61 78 69 0d 65 6e |Planetar|yTaxi.en|
|00001090| 64 20 69 66 0d 72 65 73 | 65 74 20 6d 65 6e 75 42 |d if.res|et menuB|
|000010a0| 61 72 0d 63 72 65 61 74 | 65 4d 65 6e 75 0d 70 75 |ar.creat|eMenu.pu|
|000010b0| 74 20 74 68 65 20 74 69 | 63 6b 73 20 69 6e 74 6f |t the ti|cks into|
|000010c0| 20 67 4c 61 73 74 43 6c | 69 63 6b 0d 65 6c 73 65 | gLastCl|ick.else|
|000010d0| 20 69 66 20 65 6e 74 65 | 72 4f 72 45 78 69 74 3d | if ente|rOrExit=|
|000010e0| 22 65 78 69 74 22 20 74 | 68 65 6e 20 2d 2d 20 65 |"exit" t|hen -- e|
|000010f0| 78 69 74 69 6e 67 0d 73 | 65 74 20 74 68 65 20 75 |xiting.s|et the u|
|00001100| 73 65 72 4c 65 76 65 6c | 20 74 6f 20 6c 69 6e 65 |serLevel| to line|
|00001110| 20 31 20 6f 66 20 67 53 | 61 76 47 6c 6f 62 6c 73 | 1 of gS|avGlobls|
|00001120| 0d 73 65 74 20 74 68 65 | 20 62 6c 69 6e 64 54 79 |.set the| blindTy|
|00001130| 70 69 6e 67 20 74 6f 20 | 6c 69 6e 65 20 32 20 6f |ping to |line 2 o|
|00001140| 66 20 67 53 61 76 47 6c | 6f 62 6c 73 0d 73 65 74 |f gSavGl|obls.set|
|00001150| 20 74 68 65 20 6c 6f 6e | 67 57 69 6e 64 6f 77 54 | the lon|gWindowT|
|00001160| 49 74 6c 65 73 20 74 6f | 20 6c 69 6e 65 20 33 20 |Itles to| line 3 |
|00001170| 6f 66 20 67 53 61 76 47 | 6c 6f 62 6c 73 0d 70 75 |of gSavG|lobls.pu|
|00001180| 74 20 22 22 20 69 6e 74 | 6f 20 67 53 61 76 47 6c |t "" int|o gSavGl|
|00001190| 6f 62 6c 73 0d 64 69 73 | 70 6f 73 65 43 6f 6c 6f |obls.dis|poseColo|
|000011a0| 72 69 7a 65 48 43 0d 64 | 65 6c 65 74 65 4d 65 6e |rizeHC.d|eleteMen|
|000011b0| 75 0d 72 65 73 65 74 20 | 6d 65 6e 75 42 61 72 0d |u.reset |menuBar.|
|000011c0| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 67 4c 61 73 |put "" i|nto gLas|
|000011d0| 74 43 6c 69 63 6b 0d 65 | 6e 64 20 69 66 0d 65 6e |tClick.e|nd if.en|
|000011e0| 64 20 64 6f 43 68 6f 72 | 65 73 0d 0d 66 75 6e 63 |d doChor|es..func|
|000011f0| 74 69 6f 6e 20 77 72 6f | 6e 67 53 74 61 63 6b 0d |tion wro|ngStack.|
|00001200| 72 65 74 75 72 6e 20 28 | 74 68 65 20 76 61 6c 75 |return (|the valu|
|00001210| 65 20 6f 66 20 77 6f 72 | 64 20 32 20 6f 66 20 74 |e of wor|d 2 of t|
|00001220| 68 65 20 6c 6f 6e 67 20 | 6e 61 6d 65 20 6f 66 20 |he long |name of |
|00001230| 74 68 69 73 20 73 74 61 | 63 6b 20 3c 3e c2 0d 6c |this sta|ck <>..l|
|00001240| 69 6e 65 20 31 20 6f 66 | 20 74 68 65 20 73 74 61 |ine 1 of| the sta|
|00001250| 63 6b 73 29 0d 65 6e 64 | 20 77 72 6f 6e 67 53 74 |cks).end| wrongSt|
|00001260| 61 63 6b 0d 0d 66 75 6e | 63 74 69 6f 6e 20 67 65 |ack..fun|ction ge|
|00001270| 74 57 61 69 74 54 69 6d | 65 20 74 68 65 50 61 72 |tWaitTim|e thePar|
|00001280| 61 6d 0d 67 6c 6f 62 61 | 6c 20 67 53 54 57 61 69 |am.globa|l gSTWai|
|00001290| 74 54 69 6d 65 20 2d 2d | 20 73 74 61 74 69 63 0d |tTime --| static.|
|000012a0| 69 66 20 74 68 65 50 61 | 72 61 6d 20 3c 3e 20 22 |if thePa|ram <> "|
|000012b0| 22 20 74 68 65 6e 0d 69 | 66 20 74 68 65 50 61 72 |" then.i|f thePar|
|000012c0| 61 6d 20 69 73 20 61 6e | 20 69 6e 74 65 67 65 72 |am is an| integer|
|000012d0| 20 74 68 65 6e 0d 70 75 | 74 20 28 74 68 65 20 73 | then.pu|t (the s|
|000012e0| 65 63 73 20 2b 20 74 68 | 65 50 61 72 61 6d 29 20 |ecs + th|eParam) |
|000012f0| 69 6e 74 6f 20 67 53 54 | 57 61 69 74 54 69 6d 65 |into gST|WaitTime|
|00001300| 0d 72 65 74 75 72 6e 20 | 22 30 22 0d 65 6e 64 20 |.return |"0".end |
|00001310| 69 66 0d 65 6c 73 65 0d | 72 65 74 75 72 6e 20 28 |if.else.|return (|
|00001320| 67 53 54 57 61 69 74 54 | 69 6d 65 20 2d 20 74 68 |gSTWaitT|ime - th|
|00001330| 65 20 73 65 63 73 29 0d | 65 6e 64 20 69 66 0d 72 |e secs).|end if.r|
|00001340| 65 74 75 72 6e 20 22 30 | 22 0d 65 6e 64 20 67 65 |eturn "0|".end ge|
|00001350| 74 57 61 69 74 54 69 6d | 65 0d 0d 66 75 6e 63 74 |tWaitTim|e..funct|
|00001360| 69 6f 6e 20 74 72 61 70 | 44 62 6c 43 6c 69 78 0d |ion trap|DblClix.|
|00001370| 67 6c 6f 62 61 6c 20 67 | 4c 61 73 74 43 6c 69 63 |global g|LastClic|
|00001380| 6b 0d 70 75 74 20 74 68 | 65 20 74 69 63 6b 73 20 |k.put th|e ticks |
|00001390| 69 6e 74 6f 20 6e 65 77 | 43 6c 69 63 6b 0d 69 66 |into new|Click.if|
|000013a0| 20 6e 65 77 43 6c 69 63 | 6b 20 2d 20 67 4c 61 73 | newClic|k - gLas|
|000013b0| 74 43 6c 69 63 6b 20 3e | 20 31 32 30 20 74 68 65 |tClick >| 120 the|
|000013c0| 6e 0d 70 75 74 20 6e 65 | 77 43 6c 69 63 6b 20 69 |n.put ne|wClick i|
|000013d0| 6e 74 6f 20 67 4c 61 73 | 74 43 6c 69 63 6b 0d 72 |nto gLas|tClick.r|
|000013e0| 65 74 75 72 6e 20 22 74 | 72 75 65 22 0d 65 6c 73 |eturn "t|rue".els|
|000013f0| 65 0d 72 65 74 75 72 6e | 20 22 66 61 6c 73 65 22 |e.return| "false"|
|00001400| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 74 72 61 70 |.end if.|end trap|
|00001410| 44 62 6c 43 6c 69 78 0d | 0d 66 75 6e 63 74 69 6f |DblClix.|.functio|
|00001420| 6e 20 68 69 6c 69 74 65 | 52 67 6e 20 74 68 65 53 |n hilite|Rgn theS|
|00001430| 68 61 70 65 0d 69 66 20 | 28 77 6f 72 64 20 32 20 |hape.if |(word 2 |
|00001440| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 3d 22 62 |of the t|arget="b|
|00001450| 75 74 74 6f 6e 22 29 20 | 74 68 65 6e 0d 70 75 74 |utton") |then.put|
|00001460| 20 74 68 65 20 72 65 63 | 74 20 6f 66 20 74 68 65 | the rec|t of the|
|00001470| 20 74 61 72 67 65 74 20 | 69 6e 74 6f 20 74 68 65 | target |into the|
|00001480| 52 65 63 74 0d 69 66 20 | 74 68 65 53 68 61 70 65 |Rect.if |theShape|
|00001490| 3d 22 6f 76 61 6c 22 20 | 74 68 65 6e 20 69 6e 76 |="oval" |then inv|
|000014a0| 65 72 74 6f 76 61 6c 20 | 74 68 65 52 65 63 74 0d |ertoval |theRect.|
|000014b0| 65 6c 73 65 20 64 69 6d | 52 65 63 74 20 74 68 65 |else dim|Rect the|
|000014c0| 52 65 63 74 0d 70 75 74 | 20 74 68 65 20 72 65 63 |Rect.put| the rec|
|000014d0| 74 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |t of the| target |
|000014e0| 69 6e 74 6f 20 74 65 6d | 70 52 65 63 74 0d 70 75 |into tem|pRect.pu|
|000014f0| 74 20 22 74 72 75 65 22 | 20 69 6e 74 6f 20 74 65 |t "true"| into te|
|00001500| 6d 70 0d 72 65 70 65 61 | 74 20 75 6e 74 69 6c 20 |mp.repea|t until |
|00001510| 74 68 65 20 6d 6f 75 73 | 65 20 69 73 20 75 70 0d |the mous|e is up.|
|00001520| 69 66 20 74 68 65 20 6d | 6f 75 73 65 6c 6f 63 20 |if the m|ouseloc |
|00001530| 69 73 20 6e 6f 74 20 77 | 69 74 68 69 6e 20 74 65 |is not w|ithin te|
|00001540| 6d 70 52 65 63 74 20 74 | 68 65 6e 0d 69 66 20 74 |mpRect t|hen.if t|
|00001550| 65 6d 70 20 74 68 65 6e | 0d 69 66 20 74 68 65 53 |emp then|.if theS|
|00001560| 68 61 70 65 3d 22 6f 76 | 61 6c 22 20 74 68 65 6e |hape="ov|al" then|
|00001570| 20 69 6e 76 65 72 74 6f | 76 61 6c 20 74 68 65 52 | inverto|val theR|
|00001580| 65 63 74 0d 65 6c 73 65 | 20 64 69 6d 52 65 63 74 |ect.else| dimRect|
|00001590| 20 74 68 65 52 65 63 74 | 0d 65 6e 64 20 69 66 0d | theRect|.end if.|
|000015a0| 70 75 74 20 22 66 61 6c | 73 65 22 20 69 6e 74 6f |put "fal|se" into|
|000015b0| 20 74 65 6d 70 0d 65 6c | 73 65 0d 69 66 20 6e 6f | temp.el|se.if no|
|000015c0| 74 20 74 65 6d 70 20 74 | 68 65 6e 0d 69 66 20 74 |t temp t|hen.if t|
|000015d0| 68 65 53 68 61 70 65 3d | 22 6f 76 61 6c 22 20 74 |heShape=|"oval" t|
|000015e0| 68 65 6e 20 69 6e 76 65 | 72 74 6f 76 61 6c 20 74 |hen inve|rtoval t|
|000015f0| 68 65 52 65 63 74 0d 65 | 6c 73 65 20 64 69 6d 52 |heRect.e|lse dimR|
|00001600| 65 63 74 20 74 68 65 52 | 65 63 74 0d 65 6e 64 20 |ect theR|ect.end |
|00001610| 69 66 0d 70 75 74 20 22 | 74 72 75 65 22 20 69 6e |if.put "|true" in|
|00001620| 74 6f 20 74 65 6d 70 0d | 65 6e 64 20 69 66 0d 65 |to temp.|end if.e|
|00001630| 6e 64 20 72 65 70 65 61 | 74 0d 72 65 74 75 72 6e |nd repea|t.return|
|00001640| 20 74 65 6d 70 0d 65 6c | 73 65 0d 72 65 74 75 72 | temp.el|se.retur|
|00001650| 6e 20 22 66 61 6c 73 65 | 22 0d 65 6e 64 20 69 66 |n "false|".end if|
|00001660| 0d 65 6e 64 20 68 69 6c | 69 74 65 52 67 6e 0d 0d |.end hil|iteRgn..|
|00001670| 6f 6e 20 71 75 69 74 50 | 6c 61 6e 65 74 61 72 79 |on quitP|lanetary|
|00001680| 54 61 78 69 0d 67 6c 6f | 62 61 6c 20 67 52 49 54 |Taxi.glo|bal gRIT|
|00001690| 41 4d 6f 76 69 65 0d 69 | 66 20 74 68 65 72 65 20 |AMovie.i|f there |
|000016a0| 69 73 20 61 20 77 69 6e | 64 6f 77 20 69 64 20 67 |is a win|dow id g|
|000016b0| 52 49 54 41 4d 6f 76 69 | 65 20 74 68 65 6e 0d 67 |RITAMovi|e then.g|
|000016c0| 65 74 47 45 4e 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |etGENInf|ormation|
|000016d0| 20 22 31 31 35 22 0d 72 | 65 70 65 61 74 20 75 6e | "115".r|epeat un|
|000016e0| 74 69 6c 20 74 68 65 20 | 72 61 74 65 20 6f 66 20 |til the |rate of |
|000016f0| 77 69 6e 64 6f 77 20 69 | 64 20 67 52 49 54 41 4d |window i|d gRITAM|
|00001700| 6f 76 69 65 3d 30 0d 73 | 65 6e 64 20 69 64 6c 65 |ovie=0.s|end idle|
|00001710| 20 74 6f 20 77 69 6e 64 | 6f 77 20 69 64 20 67 52 | to wind|ow id gR|
|00001720| 49 54 41 4d 6f 76 69 65 | 0d 65 6e 64 20 72 65 70 |ITAMovie|.end rep|
|00001730| 65 61 74 0d 65 6e 64 20 | 69 66 0d 73 65 74 20 63 |eat.end |if.set c|
|00001740| 75 72 73 6f 72 20 74 6f | 20 77 61 74 63 68 0d 69 |ursor to| watch.i|
|00001750| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00001760| 6c 69 6e 65 73 20 69 6e | 20 74 68 65 20 73 74 61 |lines in| the sta|
|00001770| 63 6b 73 20 3e 20 31 20 | 74 68 65 6e 0d 64 6f 4d |cks > 1 |then.doM|
|00001780| 65 6e 75 20 22 43 6c 6f | 73 65 20 53 74 61 63 6b |enu "Clo|se Stack|
|00001790| 22 0d 65 6c 73 65 0d 64 | 6f 4d 65 6e 75 20 22 51 |".else.d|oMenu "Q|
|000017a0| 75 69 74 20 48 79 70 65 | 72 43 61 72 64 22 0d 65 |uit Hype|rCard".e|
|000017b0| 6e 64 20 69 66 0d 65 6e | 64 20 71 75 69 74 50 6c |nd if.en|d quitPl|
|000017c0| 61 6e 65 74 61 72 79 54 | 61 78 69 0d 0d 6f 6e 20 |anetaryT|axi..on |
|000017d0| 73 68 6f 77 63 72 65 64 | 69 74 73 0d 70 69 63 74 |showcred|its.pict|
|000017e0| 75 72 65 20 22 43 52 45 | 44 49 54 53 5f 31 22 2c |ure "CRE|DITS_1",|
|000017f0| 72 65 73 6f 75 72 63 65 | 2c 64 69 61 6c 6f 67 2c |resource|,dialog,|
|00001800| 74 72 75 65 2c 31 2c 74 | 72 75 65 0d 69 66 20 74 |true,1,t|rue.if t|
|00001810| 68 65 72 65 20 69 73 20 | 61 20 77 69 6e 64 6f 77 |here is |a window|
|00001820| 20 22 43 52 45 44 49 54 | 53 5f 31 22 20 74 68 65 | "CREDIT|S_1" the|
|00001830| 6e 0d 77 61 69 74 20 75 | 6e 74 69 6c 20 74 68 65 |n.wait u|ntil the|
|00001840| 20 6d 6f 75 73 65 63 6c | 69 63 6b 0d 70 69 63 74 | mousecl|ick.pict|
|00001850| 75 72 65 20 22 43 52 45 | 44 49 54 53 5f 32 22 2c |ure "CRE|DITS_2",|
|00001860| 72 65 73 6f 75 72 63 65 | 2c 64 69 61 6c 6f 67 2c |resource|,dialog,|
|00001870| 74 72 75 65 2c 31 2c 74 | 72 75 65 0d 68 69 64 65 |true,1,t|rue.hide|
|00001880| 20 77 69 6e 64 6f 77 20 | 22 43 52 45 44 49 54 53 | window |"CREDITS|
|00001890| 5f 31 22 0d 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |_1".clos|e window|
|000018a0| 20 22 43 52 45 44 49 54 | 53 5f 31 22 0d 65 6e 64 | "CREDIT|S_1".end|
|000018b0| 20 69 66 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 | if.if t|here is |
|000018c0| 61 20 77 69 6e 64 6f 77 | 20 22 43 52 45 44 49 54 |a window| "CREDIT|
|000018d0| 53 5f 32 22 20 74 68 65 | 6e 0d 77 61 69 74 20 75 |S_2" the|n.wait u|
|000018e0| 6e 74 69 6c 20 74 68 65 | 20 6d 6f 75 73 65 63 6c |ntil the| mousecl|
|000018f0| 69 63 6b 0d 68 69 64 65 | 20 77 69 6e 64 6f 77 20 |ick.hide| window |
|00001900| 22 43 52 45 44 49 54 53 | 5f 32 22 0d 63 6c 6f 73 |"CREDITS|_2".clos|
|00001910| 65 20 77 69 6e 64 6f 77 | 20 22 43 52 45 44 49 54 |e window| "CREDIT|
|00001920| 53 5f 32 22 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |S_2".end| if.end |
|00001930| 73 68 6f 77 63 72 65 64 | 69 74 73 0d 0d 6f 6e 20 |showcred|its..on |
|00001940| 63 65 6e 74 65 72 43 61 | 72 64 57 69 6e 64 6f 77 |centerCa|rdWindow|
|00001950| 20 63 65 6e 74 65 72 52 | 65 63 74 0d 70 75 74 20 | centerR|ect.put |
|00001960| 63 65 6e 74 65 72 52 65 | 63 74 20 69 6e 74 6f 20 |centerRe|ct into |
|00001970| 74 65 6d 70 52 65 63 74 | 0d 70 75 74 20 28 28 69 |tempRect|.put ((i|
|00001980| 74 65 6d 20 33 20 6f 66 | 20 74 65 6d 70 52 65 63 |tem 3 of| tempRec|
|00001990| 74 29 2d 35 31 32 29 20 | 69 6e 74 6f 20 74 68 65 |t)-512) |into the|
|000019a0| 4c 65 66 74 0d 64 69 76 | 69 64 65 20 74 68 65 4c |Left.div|ide theL|
|000019b0| 65 66 74 20 62 79 20 32 | 0d 70 75 74 20 28 74 68 |eft by 2|.put (th|
|000019c0| 65 4c 65 66 74 20 2b 20 | 35 31 32 29 20 69 6e 74 |eLeft + |512) int|
|000019d0| 6f 20 74 68 65 52 69 67 | 68 74 0d 70 75 74 20 28 |o theRig|ht.put (|
|000019e0| 28 69 74 65 6d 20 34 20 | 6f 66 20 74 65 6d 70 52 |(item 4 |of tempR|
|000019f0| 65 63 74 29 2d 33 38 34 | 29 20 69 6e 74 6f 20 74 |ect)-384|) into t|
|00001a00| 68 65 54 6f 70 0d 64 69 | 76 69 64 65 20 74 68 65 |heTop.di|vide the|
|00001a10| 54 6f 70 20 62 79 20 32 | 0d 61 64 64 20 31 30 20 |Top by 2|.add 10 |
|00001a20| 74 6f 20 74 68 65 54 6f | 70 0d 70 75 74 20 28 74 |to theTo|p.put (t|
|00001a30| 68 65 54 6f 70 20 2b 20 | 33 38 34 29 20 69 6e 74 |heTop + |384) int|
|00001a40| 6f 20 74 68 65 42 6f 74 | 74 6f 6d 0d 73 65 74 20 |o theBot|tom.set |
|00001a50| 74 68 65 20 72 65 63 74 | 20 6f 66 20 74 68 65 20 |the rect| of the |
|00001a60| 63 61 72 64 20 77 69 6e | 64 6f 77 20 74 6f c2 0d |card win|dow to..|
|00001a70| 74 68 65 4c 65 66 74 2c | 74 68 65 54 6f 70 2c 74 |theLeft,|theTop,t|
|00001a80| 68 65 52 69 67 68 74 2c | 74 68 65 42 6f 74 74 6f |heRight,|theBotto|
|00001a90| 6d 0d 65 6e 64 20 63 65 | 6e 74 65 72 43 61 72 64 |m.end ce|nterCard|
|00001aa0| 57 69 6e 64 6f 77 0d 0d | 66 75 6e 63 74 69 6f 6e |Window..|function|
|00001ab0| 20 67 65 74 46 69 6c 65 | 4e 61 6d 65 20 66 75 6c | getFile|Name ful|
|00001ac0| 6c 50 61 74 68 4e 61 6d | 65 0d 69 66 20 22 3a 22 |lPathNam|e.if ":"|
|00001ad0| 20 69 73 20 69 6e 20 66 | 75 6c 6c 50 61 74 68 4e | is in f|ullPathN|
|00001ae0| 61 6d 65 20 74 68 65 6e | 0d 72 65 70 65 61 74 20 |ame then|.repeat |
|00001af0| 77 69 74 68 20 63 68 61 | 72 50 6f 73 69 74 69 6f |with cha|rPositio|
|00001b00| 6e 3d 6c 65 6e 67 74 68 | 28 66 75 6c 6c 50 61 74 |n=length|(fullPat|
|00001b10| 68 4e 61 6d 65 29 20 64 | 6f 77 6e 20 74 6f 20 31 |hName) d|own to 1|
|00001b20| 0d 69 66 20 63 68 61 72 | 20 63 68 61 72 50 6f 73 |.if char| charPos|
|00001b30| 69 74 69 6f 6e 20 6f 66 | 20 66 75 6c 6c 50 61 74 |ition of| fullPat|
|00001b40| 68 4e 61 6d 65 3d 22 3a | 22 20 74 68 65 6e 0d 72 |hName=":|" then.r|
|00001b50| 65 74 75 72 6e 20 63 68 | 61 72 20 28 63 68 61 72 |eturn ch|ar (char|
|00001b60| 50 6f 73 69 74 69 6f 6e | 20 2b 20 31 29 20 74 6f |Position| + 1) to|
|00001b70| c2 0d 6c 65 6e 67 74 68 | 28 66 75 6c 6c 50 61 74 |..length|(fullPat|
|00001b80| 68 4e 61 6d 65 29 20 6f | 66 20 66 75 6c 6c 50 61 |hName) o|f fullPa|
|00001b90| 74 68 4e 61 6d 65 0d 65 | 6e 64 20 69 66 0d 65 6e |thName.e|nd if.en|
|00001ba0| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00001bb0| 22 22 0d 65 6c 73 65 0d | 72 65 74 75 72 6e 20 66 |"".else.|return f|
|00001bc0| 75 6c 6c 50 61 74 68 4e | 61 6d 65 0d 65 6e 64 20 |ullPathN|ame.end |
|00001bd0| 69 66 0d 65 6e 64 20 67 | 65 74 46 69 6c 65 4e 61 |if.end g|etFileNa|
|00001be0| 6d 65 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 67 65 74 |me..func|tion get|
|00001bf0| 56 6f 6c 75 6d 65 4e 61 | 6d 65 20 66 75 6c 6c 50 |VolumeNa|me fullP|
|00001c00| 61 74 68 4e 61 6d 65 0d | 69 66 20 22 3a 22 20 69 |athName.|if ":" i|
|00001c10| 73 20 69 6e 20 66 75 6c | 6c 50 61 74 68 4e 61 6d |s in ful|lPathNam|
|00001c20| 65 20 74 68 65 6e 0d 72 | 65 70 65 61 74 20 77 69 |e then.r|epeat wi|
|00001c30| 74 68 20 63 68 61 72 50 | 6f 73 69 74 69 6f 6e 3d |th charP|osition=|
|00001c40| 6c 65 6e 67 74 68 28 66 | 75 6c 6c 50 61 74 68 4e |length(f|ullPathN|
|00001c50| 61 6d 65 29 20 64 6f 77 | 6e 20 74 6f 20 31 0d 69 |ame) dow|n to 1.i|
|00001c60| 66 20 63 68 61 72 20 63 | 68 61 72 50 6f 73 69 74 |f char c|harPosit|
|00001c70| 69 6f 6e 20 6f 66 20 66 | 75 6c 6c 50 61 74 68 4e |ion of f|ullPathN|
|00001c80| 61 6d 65 3d 22 3a 22 20 | 74 68 65 6e 0d 72 65 74 |ame=":" |then.ret|
|00001c90| 75 72 6e 20 63 68 61 72 | 20 31 20 74 6f 20 28 63 |urn char| 1 to (c|
|00001ca0| 68 61 72 50 6f 73 69 74 | 69 6f 6e 20 2d 20 31 29 |harPosit|ion - 1)|
|00001cb0| 20 6f 66 20 66 75 6c 6c | 50 61 74 68 4e 61 6d 65 | of full|PathName|
|00001cc0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00001cd0| 61 74 0d 72 65 74 75 72 | 6e 20 22 22 0d 65 6c 73 |at.retur|n "".els|
|00001ce0| 65 0d 72 65 74 75 72 6e | 20 22 22 0d 65 6e 64 20 |e.return| "".end |
|00001cf0| 69 66 0d 65 6e 64 20 67 | 65 74 56 6f 6c 75 6d 65 |if.end g|etVolume|
|00001d00| 4e 61 6d 65 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 67 |Name..fu|nction g|
|00001d10| 65 74 4d 79 43 75 72 72 | 65 6e 74 50 61 74 68 20 |etMyCurr|entPath |
|00001d20| 2d 2d 20 72 65 74 75 72 | 6e 73 20 70 61 74 68 4e |-- retur|ns pathN|
|00001d30| 61 6d 65 20 6f 66 20 63 | 61 6c 6c 69 6e 67 20 73 |ame of c|alling s|
|00001d40| 74 61 63 6b 0d 70 75 74 | 20 67 65 74 56 6f 6c 75 |tack.put| getVolu|
|00001d50| 6d 65 4e 61 6d 65 28 74 | 68 65 20 6c 6f 6e 67 20 |meName(t|he long |
|00001d60| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 73 74 61 |name of |this sta|
|00001d70| 63 6b 29 20 69 6e 74 6f | 20 74 65 6d 70 0d 64 65 |ck) into| temp.de|
|00001d80| 6c 65 74 65 20 77 6f 72 | 64 20 31 20 6f 66 20 74 |lete wor|d 1 of t|
|00001d90| 65 6d 70 0d 64 65 6c 65 | 74 65 20 63 68 61 72 20 |emp.dele|te char |
|00001da0| 31 20 6f 66 20 74 65 6d | 70 0d 72 65 74 75 72 6e |1 of tem|p.return|
|00001db0| 20 74 65 6d 70 0d 65 6e | 64 20 67 65 74 4d 79 43 | temp.en|d getMyC|
|00001dc0| 75 72 72 65 6e 74 50 61 | 74 68 0d 0d 66 75 6e 63 |urrentPa|th..func|
|00001dd0| 74 69 6f 6e 20 67 65 74 | 54 65 6d 70 6c 61 74 65 |tion get|Template|
|00001de0| 54 65 78 74 20 73 6f 75 | 72 63 65 46 69 65 6c 64 |Text sou|rceField|
|00001df0| 2c 20 73 6f 75 72 63 65 | 43 61 72 64 49 44 2c 20 |, source|CardID, |
|00001e00| 69 6e 64 69 72 65 63 74 | 69 6f 6e 0d 69 66 20 69 |indirect|ion.if i|
|00001e10| 6e 64 69 72 65 63 74 69 | 6f 6e 3d 22 66 61 6c 73 |ndirecti|on="fals|
|00001e20| 65 22 20 74 68 65 6e 0d | 72 65 74 75 72 6e 20 28 |e" then.|return (|
|00001e30| 63 64 20 66 6c 64 20 73 | 6f 75 72 63 65 66 69 65 |cd fld s|ourcefie|
|00001e40| 6c 64 20 6f 66 20 63 61 | 72 64 20 69 64 20 73 6f |ld of ca|rd id so|
|00001e50| 75 72 63 65 43 61 72 64 | 49 44 29 0d 65 6c 73 65 |urceCard|ID).else|
|00001e60| 0d 70 75 74 20 74 68 65 | 20 72 61 6e 64 6f 6d 20 |.put the| random |
|00001e70| 6f 66 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |of the n|umber of|
|00001e80| 20 6c 69 6e 65 73 c2 0d | 69 6e 20 63 64 20 66 69 | lines..|in cd fi|
|00001e90| 65 6c 64 20 73 6f 75 72 | 63 65 46 69 65 6c 64 20 |eld sour|ceField |
|00001ea0| 6f 66 20 63 64 20 49 44 | 20 73 6f 75 72 63 65 43 |of cd ID| sourceC|
|00001eb0| 61 72 64 49 44 20 69 6e | 74 6f 20 6c 69 6e 65 4e |ardID in|to lineN|
|00001ec0| 75 6d 62 65 72 0d 70 75 | 74 20 6c 69 6e 65 20 6c |umber.pu|t line l|
|00001ed0| 69 6e 65 4e 75 6d 62 65 | 72 20 6f 66 20 63 64 20 |ineNumbe|r of cd |
|00001ee0| 66 69 65 6c 64 20 73 6f | 75 72 63 65 46 69 65 6c |field so|urceFiel|
|00001ef0| 64 c2 0d 6f 66 20 63 64 | 20 69 64 20 73 6f 75 72 |d..of cd| id sour|
|00001f00| 63 65 43 61 72 64 49 44 | 20 69 6e 74 6f 20 66 69 |ceCardID| into fi|
|00001f10| 65 6c 64 4e 61 6d 65 0d | 70 75 74 20 63 64 20 66 |eldName.|put cd f|
|00001f20| 69 65 6c 64 20 66 69 65 | 6c 64 4e 61 6d 65 20 6f |ield fie|ldName o|
|00001f30| 66 20 63 64 20 69 64 20 | 73 6f 75 72 63 65 43 61 |f cd id |sourceCa|
|00001f40| 72 64 49 44 20 69 6e 74 | 6f 20 74 65 6d 70 0d 72 |rdID int|o temp.r|
|00001f50| 65 74 75 72 6e 20 74 65 | 6d 70 0d 65 6e 64 20 69 |eturn te|mp.end i|
|00001f60| 66 0d 65 6e 64 20 67 65 | 74 54 65 6d 70 6c 61 74 |f.end ge|tTemplat|
|00001f70| 65 54 65 78 74 0d 0d 6f | 6e 20 70 6c 61 79 54 65 |eText..o|n playTe|
|00001f80| 78 74 41 75 64 69 6f 20 | 74 68 65 54 65 78 74 0d |xtAudio |theText.|
|00001f90| 67 6c 6f 62 61 6c 20 67 | 42 47 50 61 73 73 54 65 |global g|BGPassTe|
|00001fa0| 78 74 2c 20 67 41 75 64 | 69 6f 4d 6f 76 69 65 2c |xt, gAud|ioMovie,|
|00001fb0| 20 67 52 49 54 41 4d 6f | 76 69 65 0d 69 66 20 74 | gRITAMo|vie.if t|
|00001fc0| 68 65 54 65 78 74 20 3c | 3e 20 22 22 20 74 68 65 |heText <|> "" the|
|00001fd0| 6e 20 70 75 74 20 74 68 | 65 54 65 78 74 20 69 6e |n put th|eText in|
|00001fe0| 74 6f 20 67 42 47 50 61 | 73 73 54 65 78 74 0d 70 |to gBGPa|ssText.p|
|00001ff0| 75 74 20 22 22 20 69 6e | 74 6f 20 62 67 20 66 6c |ut "" in|to bg fl|
|00002000| 64 20 22 54 65 78 74 5f | 4d 65 73 73 61 67 65 73 |d "Text_|Messages|
|00002010| 22 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 6b 3d |".repeat| with k=|
|00002020| 31 20 74 6f 20 28 74 68 | 65 20 6e 75 6d 62 65 72 |1 to (th|e number|
|00002030| 20 6f 66 20 77 6f 72 64 | 73 20 69 6e 20 74 68 65 | of word|s in the|
|00002040| 54 65 78 74 29 0d 70 75 | 74 20 77 6f 72 64 20 6b |Text).pu|t word k|
|00002050| 20 6f 66 20 74 68 65 54 | 65 78 74 20 26 20 73 70 | of theT|ext & sp|
|00002060| 61 63 65 20 61 66 74 65 | 72 20 62 67 20 66 6c 64 |ace afte|r bg fld|
|00002070| 20 22 54 65 78 74 5f 4d | 65 73 73 61 67 65 73 22 | "Text_M|essages"|
|00002080| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 69 |.unlock |screen.i|
|00002090| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|000020a0| 64 6f 77 20 69 64 20 67 | 41 75 64 69 6f 4d 6f 76 |dow id g|AudioMov|
|000020b0| 69 65 20 74 68 65 6e 20 | 73 65 6e 64 20 69 64 6c |ie then |send idl|
|000020c0| 65 20 74 6f 20 77 69 6e | 64 6f 77 20 69 64 20 67 |e to win|dow id g|
|000020d0| 41 75 64 69 6f 4d 6f 76 | 69 65 0d 69 66 20 74 68 |AudioMov|ie.if th|
|000020e0| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|000020f0| 69 64 20 67 52 49 54 41 | 4d 6f 76 69 65 20 74 68 |id gRITA|Movie th|
|00002100| 65 6e 20 73 65 6e 64 20 | 69 64 6c 65 20 74 6f 20 |en send |idle to |
|00002110| 77 69 6e 64 6f 77 20 69 | 64 20 67 52 49 54 41 4d |window i|d gRITAM|
|00002120| 6f 76 69 65 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |ovie.end| repeat.|
|00002130| 65 6e 64 20 70 6c 61 79 | 54 65 78 74 41 75 64 69 |end play|TextAudi|
|00002140| 6f 0d 0d 6f 6e 20 67 65 | 74 49 6e 66 6f 72 6d 61 |o..on ge|tInforma|
|00002150| 74 69 6f 6e 20 74 68 65 | 50 61 72 61 6d 0d 70 75 |tion the|Param.pu|
|00002160| 74 20 67 65 74 54 65 6d | 70 6c 61 74 65 53 6f 75 |t getTem|plateSou|
|00002170| 72 63 65 28 29 20 69 6e | 74 6f 20 73 6f 75 72 63 |rce() in|to sourc|
|00002180| 65 49 44 0d 69 66 20 6c | 6f 61 64 41 75 64 69 6f |eID.if l|oadAudio|
|00002190| 28 73 6f 75 72 63 65 49 | 44 2c 74 68 65 50 61 72 |(sourceI|D,thePar|
|000021a0| 61 6d 29 20 74 68 65 6e | 0d 73 65 74 51 54 4d 6f |am) then|.setQTMo|
|000021b0| 76 69 65 20 22 61 75 64 | 69 6f 22 2c 22 73 65 67 |vie "aud|io","seg|
|000021c0| 6d 65 6e 74 50 6c 61 79 | 22 2c 22 74 72 75 65 22 |mentPlay|","true"|
|000021d0| 0d 73 65 6e 64 20 69 64 | 6c 65 20 74 6f 20 77 69 |.send id|le to wi|
|000021e0| 6e 64 6f 77 20 69 64 20 | 67 65 74 4d 6f 76 69 65 |ndow id |getMovie|
|000021f0| 49 44 28 22 61 75 64 69 | 6f 22 29 0d 65 6e 64 20 |ID("audi|o").end |
|00002200| 69 66 0d 70 6c 61 79 54 | 65 78 74 41 75 64 69 6f |if.playT|extAudio|
|00002210| 20 28 6c 69 6e 65 20 74 | 68 65 50 61 72 61 6d 20 | (line t|heParam |
|00002220| 6f 66 20 62 67 20 66 6c | 64 20 69 64 20 34 20 6f |of bg fl|d id 4 o|
|00002230| 66 20 63 64 20 69 64 20 | 73 6f 75 72 63 65 49 44 |f cd id |sourceID|
|00002240| 29 0d 65 6e 64 20 67 65 | 74 49 6e 66 6f 72 6d 61 |).end ge|tInforma|
|00002250| 74 69 6f 6e 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 65 |tion..fu|nction e|
|00002260| 72 72 6f 72 4d 65 73 73 | 61 67 65 20 66 69 65 6c |rrorMess|age fiel|
|00002270| 64 4e 61 6d 65 2c 20 63 | 61 6e 63 65 6c 4f 70 74 |dName, c|ancelOpt|
|00002280| 69 6f 6e 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ion.if t|here is |
|00002290| 61 20 63 64 20 66 6c 64 | 20 66 69 65 6c 64 4e 61 |a cd fld| fieldNa|
|000022a0| 6d 65 20 6f 66 20 63 61 | 72 64 20 69 64 20 31 34 |me of ca|rd id 14|
|000022b0| 36 33 32 20 74 68 65 6e | 0d 70 75 74 20 67 65 74 |632 then|.put get|
|000022c0| 54 65 6d 70 6c 61 74 65 | 54 65 78 74 28 66 69 65 |Template|Text(fie|
|000022d0| 6c 64 4e 61 6d 65 2c 31 | 34 36 33 32 2c 22 66 61 |ldName,1|4632,"fa|
|000022e0| 6c 73 65 22 29 20 69 6e | 74 6f 20 74 68 65 43 6f |lse") in|to theCo|
|000022f0| 6e 74 61 69 6e 65 72 0d | 69 66 20 63 61 6e 63 65 |ntainer.|if cance|
|00002300| 6c 4f 70 74 69 6f 6e 3d | 22 63 61 6e 63 65 6c 22 |lOption=|"cancel"|
|00002310| 20 74 68 65 6e 0d 61 6e | 73 77 65 72 20 74 68 65 | then.an|swer the|
|00002320| 43 6f 6e 74 61 69 6e 65 | 72 20 77 69 74 68 20 22 |Containe|r with "|
|00002330| 4f 4b 22 20 6f 72 20 22 | 43 61 6e 63 65 6c 22 0d |OK" or "|Cancel".|
|00002340| 65 6c 73 65 0d 61 6e 73 | 77 65 72 20 74 68 65 43 |else.ans|wer theC|
|00002350| 6f 6e 74 61 69 6e 65 72 | 20 77 69 74 68 20 22 4f |ontainer| with "O|
|00002360| 4b 22 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 0d 69 |K".end i|f.else.i|
|00002370| 66 20 63 61 6e 63 65 6c | 4f 70 74 69 6f 6e 3d 22 |f cancel|Option="|
|00002380| 43 61 6e 63 65 6c 22 20 | 74 68 65 6e 0d 61 6e 73 |Cancel" |then.ans|
|00002390| 77 65 72 20 66 69 65 6c | 64 4e 61 6d 65 20 77 69 |wer fiel|dName wi|
|000023a0| 74 68 20 22 4f 4b 22 20 | 6f 72 20 22 43 61 6e 63 |th "OK" |or "Canc|
|000023b0| 65 6c 22 0d 65 6c 73 65 | 0d 61 6e 73 77 65 72 20 |el".else|.answer |
|000023c0| 66 69 65 6c 64 4e 61 6d | 65 20 77 69 74 68 20 22 |fieldNam|e with "|
|000023d0| 4f 4b 22 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |OK".end |if.end i|
|000023e0| 66 0d 70 75 74 20 69 74 | 20 69 6e 74 6f 20 74 68 |f.put it| into th|
|000023f0| 65 41 6e 73 77 65 72 0d | 69 66 20 74 68 65 41 6e |eAnswer.|if theAn|
|00002400| 73 77 65 72 3d 22 43 61 | 6e 63 65 6c 22 20 74 68 |swer="Ca|ncel" th|
|00002410| 65 6e 0d 72 65 74 75 72 | 6e 20 22 43 61 6e 63 65 |en.retur|n "Cance|
|00002420| 6c 22 0d 65 6c 73 65 0d | 72 65 74 75 72 6e 20 22 |l".else.|return "|
|00002430| 4f 4b 22 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 65 |OK".end |if.end e|
|00002440| 72 72 6f 72 4d 65 73 73 | 61 67 65 0d 0d 2d 2d 20 |rrorMess|age..-- |
|00002450| 51 75 69 63 6b 54 69 6d | 65 aa 20 6d 6f 76 69 65 |QuickTim|e. movie|
|00002460| 73 2e 0d 0d 6f 6e 20 6f | 70 65 6e 51 54 4d 6f 76 |s...on o|penQTMov|
|00002470| 69 65 20 6d 6f 76 69 65 | 4e 61 6d 65 2c 20 6d 6f |ie movie|Name, mo|
|00002480| 76 69 65 54 79 70 65 2c | 20 6c 6f 63 61 74 69 6f |vieType,| locatio|
|00002490| 6e 0d 6d 61 78 4d 65 6d | 0d 69 66 20 6d 6f 76 69 |n.maxMem|.if movi|
|000024a0| 65 54 79 70 65 20 69 73 | 20 6e 6f 74 20 69 6e 20 |eType is| not in |
|000024b0| 22 76 69 64 65 6f 2c 61 | 75 64 69 6f 2c 4a 50 45 |"video,a|udio,JPE|
|000024c0| 47 2c 52 49 54 41 2c 54 | 4f 55 52 22 20 74 68 65 |G,RITA,T|OUR" the|
|000024d0| 6e 0d 69 66 20 65 72 72 | 6f 72 4d 65 73 73 61 67 |n.if err|orMessag|
|000024e0| 65 28 69 6e 76 61 6c 69 | 64 4d 6f 76 69 65 54 79 |e(invali|dMovieTy|
|000024f0| 70 65 2c 22 4f 4b 22 29 | 3d 22 4f 4b 22 20 74 68 |pe,"OK")|="OK" th|
|00002500| 65 6e 0d 65 78 69 74 20 | 6f 70 65 6e 51 54 4d 6f |en.exit |openQTMo|
|00002510| 76 69 65 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |vie.end |if.end i|
|00002520| 66 0d 70 75 74 20 22 66 | 61 6c 73 65 22 20 69 6e |f.put "f|alse" in|
|00002530| 74 6f 20 6d 6f 76 69 65 | 53 75 63 63 65 73 73 0d |to movie|Success.|
|00002540| 70 75 74 20 22 74 72 75 | 65 22 20 69 6e 74 6f 20 |put "tru|e" into |
|00002550| 6b 65 65 70 54 72 79 69 | 6e 67 0d 70 75 74 20 22 |keepTryi|ng.put "|
|00002560| 74 72 79 44 65 66 61 75 | 6c 74 22 20 69 6e 74 6f |tryDefau|lt" into|
|00002570| 20 63 68 65 63 6b 44 65 | 66 61 75 6c 74 0d 2d 2d | checkDe|fault.--|
|00002580| 20 66 69 72 73 74 20 6c | 6f 6f 6b 20 6f 6e 20 74 | first l|ook on t|
|00002590| 68 65 20 68 61 72 64 20 | 64 69 73 6b 0d 70 75 74 |he hard |disk.put|
|000025a0| 20 22 50 6c 61 6e 65 74 | 61 72 79 20 54 61 78 69 | "Planet|ary Taxi|
|000025b0| 3a 4d 6f 76 69 65 73 3a | 22 20 26 20 6d 6f 76 69 |:Movies:|" & movi|
|000025c0| 65 4e 61 6d 65 20 69 6e | 74 6f 20 66 75 6c 6c 50 |eName in|to fullP|
|000025d0| 61 74 68 4e 61 6d 65 0d | 72 65 70 65 61 74 20 75 |athName.|repeat u|
|000025e0| 6e 74 69 6c 20 6d 6f 76 | 69 65 53 75 63 63 65 73 |ntil mov|ieSucces|
|000025f0| 73 3d 22 74 72 75 65 22 | 20 6f 72 20 6b 65 65 70 |s="true"| or keep|
|00002600| 54 72 79 69 6e 67 3d 22 | 66 61 6c 73 65 22 0d 69 |Trying="|false".i|
|00002610| 66 20 6d 6f 76 69 65 54 | 79 70 65 3d 22 76 69 64 |f movieT|ype="vid|
|00002620| 65 6f 22 20 74 68 65 6e | 0d 51 54 4d 6f 76 69 65 |eo" then|.QTMovie|
|00002630| 20 6f 70 65 6e 4d 6f 76 | 69 65 2c 70 6c 61 69 6e | openMov|ie,plain|
|00002640| 2c 66 75 6c 6c 50 61 74 | 68 4e 61 6d 65 2c 6c 6f |,fullPat|hName,lo|
|00002650| 63 61 74 69 6f 6e 2c 70 | 61 75 73 65 64 2c c2 0d |cation,p|aused,..|
|00002660| 64 6f 6e 74 50 61 69 6e | 74 57 68 69 74 65 2c 6e |dontPain|tWhite,n|
|00002670| 6f 43 6f 6e 74 72 6f 6c | 6c 65 72 2c 69 6e 76 69 |oControl|ler,invi|
|00002680| 73 69 62 6c 65 0d 65 6c | 73 65 20 69 66 20 6d 6f |sible.el|se if mo|
|00002690| 76 69 65 54 79 70 65 3d | 22 54 4f 55 52 22 20 74 |vieType=|"TOUR" t|
|000026a0| 68 65 6e 0d 51 54 4d 6f | 76 69 65 20 6f 70 65 6e |hen.QTMo|vie open|
|000026b0| 4d 6f 76 69 65 2c 70 6c | 61 69 6e 2c 66 75 6c 6c |Movie,pl|ain,full|
|000026c0| 50 61 74 68 4e 61 6d 65 | 2c 6c 6f 63 61 74 69 6f |PathName|,locatio|
|000026d0| 6e 2c 70 61 75 73 65 64 | 2c c2 0d 64 6f 6e 74 50 |n,paused|,..dontP|
|000026e0| 61 69 6e 74 57 68 69 74 | 65 2c 73 68 6f 77 43 6f |aintWhit|e,showCo|
|000026f0| 6e 74 72 6f 6c 6c 65 72 | 2c 69 6e 76 69 73 69 62 |ntroller|,invisib|
|00002700| 6c 65 2c 66 61 73 74 69 | 64 6c 65 0d 65 6c 73 65 |le,fasti|dle.else|
|00002710| 20 69 66 20 6d 6f 76 69 | 65 54 79 70 65 3d 22 61 | if movi|eType="a|
|00002720| 75 64 69 6f 22 20 6f 72 | 20 6d 6f 76 69 65 54 79 |udio" or| movieTy|
|00002730| 70 65 3d 22 52 49 54 41 | 22 20 74 68 65 6e 0d 51 |pe="RITA|" then.Q|
|00002740| 54 4d 6f 76 69 65 20 6f | 70 65 6e 4d 6f 76 69 65 |TMovie o|penMovie|
|00002750| 2c 20 70 6c 61 69 6e 2c | 20 66 75 6c 6c 50 61 74 |, plain,| fullPat|
|00002760| 68 4e 61 6d 65 2c 6c 6f | 63 61 74 69 6f 6e 2c 70 |hName,lo|cation,p|
|00002770| 61 75 73 65 64 2c c2 0d | 64 6f 6e 74 50 61 69 6e |aused,..|dontPain|
|00002780| 74 57 68 69 74 65 2c 6e | 6f 43 6f 6e 74 72 6f 6c |tWhite,n|oControl|
|00002790| 6c 65 72 2c 69 6e 76 69 | 73 69 62 6c 65 0d 65 6c |ler,invi|sible.el|
|000027a0| 73 65 20 2d 2d 20 6d 75 | 73 74 20 62 65 20 4a 50 |se -- mu|st be JP|
|000027b0| 45 47 0d 51 54 4d 6f 76 | 69 65 20 6f 70 65 6e 4d |EG.QTMov|ie openM|
|000027c0| 6f 76 69 65 2c 20 70 6c | 61 69 6e 2c 20 66 75 6c |ovie, pl|ain, ful|
|000027d0| 6c 50 61 74 68 4e 61 6d | 65 2c 6c 6f 63 61 74 69 |lPathNam|e,locati|
|000027e0| 6f 6e 2c 70 61 75 73 65 | 64 2c c2 0d 64 6f 6e 74 |on,pause|d,..dont|
|000027f0| 50 61 69 6e 74 57 68 69 | 74 65 2c 6e 6f 43 6f 6e |PaintWhi|te,noCon|
|00002800| 74 72 6f 6c 6c 65 72 2c | 69 6e 76 69 73 69 62 6c |troller,|invisibl|
|00002810| 65 2c 73 65 65 41 6c 6c | 46 72 61 6d 65 73 0d 65 |e,seeAll|Frames.e|
|00002820| 6e 64 20 69 66 0d 67 65 | 74 20 74 68 65 20 72 65 |nd if.ge|t the re|
|00002830| 73 75 6c 74 0d 69 66 20 | 63 68 65 63 6b 46 6f 72 |sult.if |checkFor|
|00002840| 51 75 69 63 6b 54 69 6d | 65 28 69 74 29 3d 22 74 |QuickTim|e(it)="t|
|00002850| 72 75 65 22 20 74 68 65 | 6e 0d 70 75 74 20 22 74 |rue" the|n.put "t|
|00002860| 72 75 65 22 20 69 6e 74 | 6f 20 6d 6f 76 69 65 53 |rue" int|o movieS|
|00002870| 75 63 63 65 73 73 20 2d | 2d 20 73 75 63 63 65 73 |uccess -|- succes|
|00002880| 73 0d 70 75 74 20 67 65 | 74 46 69 6c 65 4e 61 6d |s.put ge|tFileNam|
|00002890| 65 28 66 75 6c 6c 50 61 | 74 68 4e 61 6d 65 29 20 |e(fullPa|thName) |
|000028a0| 69 6e 74 6f 20 77 69 6e | 64 6f 77 4e 61 6d 65 0d |into win|dowName.|
|000028b0| 70 75 74 20 74 68 65 20 | 69 64 20 6f 66 20 77 69 |put the |id of wi|
|000028c0| 6e 64 6f 77 20 77 69 6e | 64 6f 77 4e 61 6d 65 20 |ndow win|dowName |
|000028d0| 69 6e 74 6f 20 74 65 6d | 70 49 44 20 2d 2d 20 77 |into tem|pID -- w|
|000028e0| 65 20 77 69 6c 6c 20 73 | 74 6f 72 65 20 74 68 69 |e will s|tore thi|
|000028f0| 73 0d 65 6c 73 65 20 69 | 66 20 63 68 65 63 6b 44 |s.else i|f checkD|
|00002900| 65 66 61 75 6c 74 3d 22 | 74 72 79 44 65 66 61 75 |efault="|tryDefau|
|00002910| 6c 74 22 20 74 68 65 6e | 20 2d 2d 20 63 68 65 63 |lt" then| -- chec|
|00002920| 6b 20 68 61 72 64 20 64 | 69 73 6b 0d 70 75 74 20 |k hard d|isk.put |
|00002930| 67 65 74 4d 79 43 75 72 | 72 65 6e 74 50 61 74 68 |getMyCur|rentPath|
|00002940| 28 29 20 26 20 22 3a 22 | 20 26 20 6d 6f 76 69 65 |() & ":"| & movie|
|00002950| 4e 61 6d 65 20 69 6e 74 | 6f 20 66 75 6c 6c 50 61 |Name int|o fullPa|
|00002960| 74 68 4e 61 6d 65 0d 70 | 75 74 20 22 74 72 79 4e |thName.p|ut "tryN|
|00002970| 65 78 74 22 20 69 6e 74 | 6f 20 63 68 65 63 6b 44 |ext" int|o checkD|
|00002980| 65 66 61 75 6c 74 0d 6e | 65 78 74 20 72 65 70 65 |efault.n|ext repe|
|00002990| 61 74 0d 65 6c 73 65 20 | 69 66 20 63 68 65 63 6b |at.else |if check|
|000029a0| 44 65 66 61 75 6c 74 3d | 22 74 72 79 4e 65 78 74 |Default=|"tryNext|
|000029b0| 22 20 74 68 65 6e 20 2d | 2d 20 74 72 79 20 6d 6f |" then -|- try mo|
|000029c0| 76 69 65 73 20 66 6f 6c | 64 65 72 0d 70 75 74 20 |vies fol|der.put |
|000029d0| 22 66 61 6c 73 65 22 20 | 69 6e 74 6f 20 63 68 65 |"false" |into che|
|000029e0| 63 6b 44 65 66 61 75 6c | 74 0d 70 75 74 20 67 65 |ckDefaul|t.put ge|
|000029f0| 74 4d 79 43 75 72 72 65 | 6e 74 50 61 74 68 28 29 |tMyCurre|ntPath()|
|00002a00| 20 26 20 22 3a 4d 6f 76 | 69 65 73 3a 22 20 26 20 | & ":Mov|ies:" & |
|00002a10| 6d 6f 76 69 65 4e 61 6d | 65 20 69 6e 74 6f 20 66 |movieNam|e into f|
|00002a20| 75 6c 6c 50 61 74 68 4e | 61 6d 65 0d 6e 65 78 74 |ullPathN|ame.next|
|00002a30| 20 72 65 70 65 61 74 0d | 65 6c 73 65 20 2d 2d 20 | repeat.|else -- |
|00002a40| 6c 65 74 20 74 68 65 20 | 75 73 65 72 20 74 72 79 |let the |user try|
|00002a50| 20 74 6f 20 66 69 6e 64 | 20 69 74 20 6f 6e 20 68 | to find| it on h|
|00002a60| 61 72 64 20 64 69 73 6b | 0d 70 75 74 20 6c 6f 6f |ard disk|.put loo|
|00002a70| 6b 46 6f 72 51 54 4d 6f | 76 69 65 28 6d 6f 76 69 |kForQTMo|vie(movi|
|00002a80| 65 4e 61 6d 65 29 20 69 | 6e 74 6f 20 66 75 6c 6c |eName) i|nto full|
|00002a90| 50 61 74 68 4e 61 6d 65 | 0d 69 66 20 66 75 6c 6c |PathName|.if full|
|00002aa0| 50 61 74 68 4e 61 6d 65 | 3d 22 65 72 72 6f 72 22 |PathName|="error"|
|00002ab0| 20 74 68 65 6e 20 70 75 | 74 20 22 66 61 6c 73 65 | then pu|t "false|
|00002ac0| 22 20 69 6e 74 6f 20 6b | 65 65 70 54 72 79 69 6e |" into k|eepTryin|
|00002ad0| 67 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |g.end if|.end rep|
|00002ae0| 65 61 74 0d 69 66 20 6b | 65 65 70 54 72 79 69 6e |eat.if k|eepTryin|
|00002af0| 67 3d 22 66 61 6c 73 65 | 22 20 74 68 65 6e 0d 71 |g="false|" then.q|
|00002b00| 75 69 74 50 6c 61 6e 65 | 74 61 72 79 54 61 78 69 |uitPlane|taryTaxi|
|00002b10| 0d 65 6c 73 65 20 69 66 | 20 6d 6f 76 69 65 53 75 |.else if| movieSu|
|00002b20| 63 63 65 73 73 3d 22 74 | 72 75 65 22 20 74 68 65 |ccess="t|rue" the|
|00002b30| 6e 20 2d 2d 20 73 74 6f | 72 65 20 74 68 65 20 49 |n -- sto|re the I|
|00002b40| 44 20 61 73 20 61 20 67 | 6c 6f 62 61 6c 0d 67 6c |D as a g|lobal.gl|
|00002b50| 6f 62 61 6c 20 67 56 69 | 64 65 6f 4d 6f 76 69 65 |obal gVi|deoMovie|
|00002b60| 2c 67 54 4f 55 52 4d 6f | 76 69 65 2c 67 41 75 64 |,gTOURMo|vie,gAud|
|00002b70| 69 6f 4d 6f 76 69 65 2c | 67 52 49 54 41 4d 6f 76 |ioMovie,|gRITAMov|
|00002b80| 69 65 2c 67 4a 50 45 47 | 4d 6f 76 69 65 0d 69 66 |ie,gJPEG|Movie.if|
|00002b90| 20 6d 6f 76 69 65 54 79 | 70 65 3d 22 76 69 64 65 | movieTy|pe="vide|
|00002ba0| 6f 22 20 74 68 65 6e 0d | 70 75 74 20 74 65 6d 70 |o" then.|put temp|
|00002bb0| 49 44 20 69 6e 74 6f 20 | 67 56 69 64 65 6f 4d 6f |ID into |gVideoMo|
|00002bc0| 76 69 65 0d 73 65 74 20 | 74 68 65 20 6d 6f 75 73 |vie.set |the mous|
|00002bd0| 65 44 6f 77 6e 4d 53 47 | 20 6f 66 20 77 69 6e 64 |eDownMSG| of wind|
|00002be0| 6f 77 20 69 64 20 67 56 | 69 64 65 6f 4d 6f 76 69 |ow id gV|ideoMovi|
|00002bf0| 65 20 74 6f 20 74 72 61 | 70 4d 6f 75 73 65 0d 65 |e to tra|pMouse.e|
|00002c00| 6c 73 65 20 69 66 20 6d | 6f 76 69 65 54 79 70 65 |lse if m|ovieType|
|00002c10| 3d 22 54 4f 55 52 22 20 | 74 68 65 6e 0d 70 75 74 |="TOUR" |then.put|
|00002c20| 20 74 65 6d 70 49 44 20 | 69 6e 74 6f 20 67 54 4f | tempID |into gTO|
|00002c30| 55 52 4d 6f 76 69 65 0d | 65 6c 73 65 20 69 66 20 |URMovie.|else if |
|00002c40| 6d 6f 76 69 65 54 79 70 | 65 3d 22 61 75 64 69 6f |movieTyp|e="audio|
|00002c50| 22 20 74 68 65 6e 0d 70 | 75 74 20 74 65 6d 70 49 |" then.p|ut tempI|
|00002c60| 44 20 69 6e 74 6f 20 67 | 41 75 64 69 6f 4d 6f 76 |D into g|AudioMov|
|00002c70| 69 65 0d 65 6c 73 65 20 | 69 66 20 6d 6f 76 69 65 |ie.else |if movie|
|00002c80| 54 79 70 65 3d 22 52 49 | 54 41 22 20 74 68 65 6e |Type="RI|TA" then|
|00002c90| 0d 70 75 74 20 74 65 6d | 70 49 44 20 69 6e 74 6f |.put tem|pID into|
|00002ca0| 20 67 52 49 54 41 4d 6f | 76 69 65 0d 65 6c 73 65 | gRITAMo|vie.else|
|00002cb0| 20 2d 2d 20 69 74 73 20 | 61 20 4a 50 45 47 0d 70 | -- its |a JPEG.p|
|00002cc0| 75 74 20 74 65 6d 70 49 | 44 20 69 6e 74 6f 20 67 |ut tempI|D into g|
|00002cd0| 4a 50 45 47 4d 6f 76 69 | 65 0d 73 65 74 20 74 68 |JPEGMovi|e.set th|
|00002ce0| 65 20 6d 6f 75 73 65 44 | 6f 77 6e 4d 53 47 20 6f |e mouseD|ownMSG o|
|00002cf0| 66 20 77 69 6e 64 6f 77 | 20 69 64 20 67 4a 50 45 |f window| id gJPE|
|00002d00| 47 4d 6f 76 69 65 20 74 | 6f 20 74 72 61 70 4d 6f |GMovie t|o trapMo|
|00002d10| 75 73 65 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |use.end |if.end i|
|00002d20| 66 0d 65 6e 64 20 6f 70 | 65 6e 51 54 6d 6f 76 69 |f.end op|enQTmovi|
|00002d30| 65 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 67 65 74 4d |e..funct|ion getM|
|00002d40| 6f 76 69 65 49 44 20 6d | 6f 76 69 65 74 79 70 65 |ovieID m|ovietype|
|00002d50| 0d 67 6c 6f 62 61 6c 20 | 67 56 69 64 65 6f 4d 6f |.global |gVideoMo|
|00002d60| 76 69 65 2c 67 41 75 64 | 69 6f 4d 6f 76 69 65 2c |vie,gAud|ioMovie,|
|00002d70| 67 52 49 54 41 4d 6f 76 | 69 65 2c 67 4a 50 45 47 |gRITAMov|ie,gJPEG|
|00002d80| 4d 6f 76 69 65 2c c2 0d | 67 54 4f 55 52 4d 6f 76 |Movie,..|gTOURMov|
|00002d90| 69 65 0d 69 66 20 6d 6f | 76 69 65 54 79 70 65 3d |ie.if mo|vieType=|
|00002da0| 22 76 69 64 65 6f 22 20 | 61 6e 64 20 74 68 65 72 |"video" |and ther|
|00002db0| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 69 64 |e is a w|indow id|
|00002dc0| 20 67 56 69 64 65 6f 4d | 6f 76 69 65 20 74 68 65 | gVideoM|ovie the|
|00002dd0| 6e 0d 72 65 74 75 72 6e | 20 67 56 69 64 65 6f 4d |n.return| gVideoM|
|00002de0| 6f 76 69 65 0d 65 6c 73 | 65 20 69 66 20 6d 6f 76 |ovie.els|e if mov|
|00002df0| 69 65 54 79 70 65 3d 22 | 61 75 64 69 6f 22 20 61 |ieType="|audio" a|
|00002e00| 6e 64 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |nd there| is a wi|
|00002e10| 6e 64 6f 77 20 69 64 20 | 67 41 75 64 69 6f 4d 6f |ndow id |gAudioMo|
|00002e20| 76 69 65 20 74 68 65 6e | 0d 72 65 74 75 72 6e 20 |vie then|.return |
|00002e30| 67 41 75 64 69 6f 4d 6f | 76 69 65 0d 65 6c 73 65 |gAudioMo|vie.else|
|00002e40| 20 69 66 20 6d 6f 76 69 | 65 54 79 70 65 3d 22 52 | if movi|eType="R|
|00002e50| 49 54 41 22 20 61 6e 64 | 20 74 68 65 72 65 20 69 |ITA" and| there i|
|00002e60| 73 20 61 20 77 69 6e 64 | 6f 77 20 69 64 20 67 52 |s a wind|ow id gR|
|00002e70| 49 54 41 4d 6f 76 69 65 | 20 74 68 65 6e 0d 72 65 |ITAMovie| then.re|
|00002e80| 74 75 72 6e 20 67 52 49 | 54 41 4d 6f 76 69 65 0d |turn gRI|TAMovie.|
|00002e90| 65 6c 73 65 20 69 66 20 | 6d 6f 76 69 65 54 79 70 |else if |movieTyp|
|00002ea0| 65 3d 22 4a 50 45 47 22 | 20 61 6e 64 20 74 68 65 |e="JPEG"| and the|
|00002eb0| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 69 |re is a |window i|
|00002ec0| 64 20 67 4a 50 45 47 4d | 6f 76 69 65 20 74 68 65 |d gJPEGM|ovie the|
|00002ed0| 6e 0d 72 65 74 75 72 6e | 20 67 4a 50 45 47 4d 6f |n.return| gJPEGMo|
|00002ee0| 76 69 65 0d 65 6c 73 65 | 20 69 66 20 6d 6f 76 69 |vie.else| if movi|
|00002ef0| 65 54 79 70 65 3d 22 54 | 4f 55 52 22 20 61 6e 64 |eType="T|OUR" and|
|00002f00| 20 74 68 65 72 65 20 69 | 73 20 61 20 77 69 6e 64 | there i|s a wind|
|00002f10| 6f 77 20 69 64 20 67 54 | 4f 55 52 4d 6f 76 69 65 |ow id gT|OURMovie|
|00002f20| 20 74 68 65 6e 0d 72 65 | 74 75 72 6e 20 67 54 4f | then.re|turn gTO|
|00002f30| 55 52 4d 6f 76 69 65 0d | 65 6c 73 65 0d 72 65 74 |URMovie.|else.ret|
|00002f40| 75 72 6e 20 22 30 22 0d | 65 6e 64 20 69 66 0d 65 |urn "0".|end if.e|
|00002f50| 6e 64 20 67 65 74 4d 6f | 76 69 65 49 44 0d 0d 66 |nd getMo|vieID..f|
|00002f60| 75 6e 63 74 69 6f 6e 20 | 67 65 74 51 54 50 72 6f |unction |getQTPro|
|00002f70| 70 65 72 74 79 20 6d 6f | 76 69 65 54 79 70 65 2c |perty mo|vieType,|
|00002f80| 20 77 69 6e 64 6f 77 50 | 72 6f 70 65 72 74 79 0d | windowP|roperty.|
|00002f90| 70 75 74 20 67 65 74 4d | 6f 76 69 65 49 44 28 6d |put getM|ovieID(m|
|00002fa0| 6f 76 69 65 74 79 70 65 | 29 20 69 6e 74 6f 20 6d |ovietype|) into m|
|00002fb0| 6f 76 69 65 49 44 0d 69 | 66 20 6d 6f 76 69 65 49 |ovieID.i|f movieI|
|00002fc0| 44 3d 22 30 22 20 74 68 | 65 6e 0d 72 65 74 75 72 |D="0" th|en.retur|
|00002fd0| 6e 20 22 65 72 72 6f 72 | 22 0d 65 6c 73 65 0d 70 |n "error|".else.p|
|00002fe0| 75 74 20 22 70 75 74 20 | 74 68 65 22 20 26 26 20 |ut "put |the" && |
|00002ff0| 28 76 61 6c 75 65 28 77 | 69 6e 64 6f 77 50 72 6f |(value(w|indowPro|
|00003000| 70 65 72 74 79 29 29 20 | 26 26 c2 0d 22 6f 66 20 |perty)) |&&.."of |
|00003010| 77 69 6e 64 6f 77 20 69 | 64 20 6d 6f 76 69 65 49 |window i|d movieI|
|00003020| 44 20 69 6e 74 6f 20 63 | 6f 6e 74 61 69 6e 65 72 |D into c|ontainer|
|00003030| 22 20 69 6e 74 6f 20 74 | 65 6d 70 0d 64 6f 20 74 |" into t|emp.do t|
|00003040| 65 6d 70 0d 72 65 74 75 | 72 6e 20 63 6f 6e 74 61 |emp.retu|rn conta|
|00003050| 69 6e 65 72 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |iner.end| if.end |
|00003060| 67 65 74 51 54 50 72 6f | 70 65 72 74 79 0d 0d 6f |getQTPro|perty..o|
|00003070| 6e 20 73 65 74 51 54 43 | 61 6c 6c 62 61 63 6b 20 |n setQTC|allback |
|00003080| 6d 6f 76 69 65 54 79 70 | 65 2c 20 63 61 6c 6c 62 |movieTyp|e, callb|
|00003090| 61 63 6b 2c 20 63 61 6c | 6c 42 61 63 6b 53 63 72 |ack, cal|lBackScr|
|000030a0| 69 70 74 0d 69 66 20 63 | 61 6c 6c 62 61 63 6b 20 |ipt.if c|allback |
|000030b0| 69 73 20 6e 6f 74 20 69 | 6e 20 22 6d 6f 75 73 65 |is not i|n "mouse|
|000030c0| 44 6f 77 6e 4d 73 67 2c | 54 69 6d 65 64 43 61 6c |DownMsg,|TimedCal|
|000030d0| 6c 42 61 63 6b 22 20 74 | 68 65 6e 0d 69 66 20 65 |lBack" t|hen.if e|
|000030e0| 72 72 6f 72 4d 65 73 73 | 61 67 65 20 28 22 69 6e |rrorMess|age ("in|
|000030f0| 76 61 6c 69 64 4d 6f 76 | 69 65 54 69 6d 65 22 2c |validMov|ieTime",|
|00003100| 20 22 4f 4b 22 29 3d 22 | 4f 4b 22 20 74 68 65 6e | "OK")="|OK" then|
|00003110| 0d 65 78 69 74 20 73 65 | 74 51 54 43 61 6c 6c 62 |.exit se|tQTCallb|
|00003120| 61 63 6b 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |ack.end |if.end i|
|00003130| 66 0d 70 75 74 20 67 65 | 74 4d 6f 76 69 65 49 44 |f.put ge|tMovieID|
|00003140| 28 6d 6f 76 69 65 74 79 | 70 65 29 20 69 6e 74 6f |(moviety|pe) into|
|00003150| 20 6d 6f 76 69 65 49 44 | 0d 69 66 20 6d 6f 76 69 | movieID|.if movi|
|00003160| 65 49 44 3d 22 30 22 20 | 74 68 65 6e 0d 69 66 20 |eID="0" |then.if |
|00003170| 65 72 72 6f 72 4d 65 73 | 73 61 67 65 28 69 6e 76 |errorMes|sage(inv|
|00003180| 61 6c 69 64 4d 6f 76 69 | 65 54 79 70 65 2c 22 4f |alidMovi|eType,"O|
|00003190| 4b 22 29 3d 22 4f 4b 22 | 20 74 68 65 6e 0d 65 78 |K")="OK"| then.ex|
|000031a0| 69 74 20 73 65 74 51 54 | 43 61 6c 6c 62 61 63 6b |it setQT|Callback|
|000031b0| 0d 65 6e 64 20 69 66 0d | 65 6c 73 65 0d 73 65 74 |.end if.|else.set|
|000031c0| 20 76 61 6c 75 65 28 63 | 61 6c 6c 62 61 63 6b 29 | value(c|allback)|
|000031d0| 20 6f 66 20 77 69 6e 64 | 6f 77 20 69 64 20 67 56 | of wind|ow id gV|
|000031e0| 69 64 65 6f 4d 6f 76 69 | 65 20 74 6f 20 63 61 6c |ideoMovi|e to cal|
|000031f0| 6c 42 61 63 6b 53 63 72 | 69 70 74 0d 65 6e 64 20 |lBackScr|ipt.end |
|00003200| 69 66 0d 65 6e 64 20 73 | 65 74 51 54 43 61 6c 6c |if.end s|etQTCall|
|00003210| 62 61 63 6b 0d 0d 6f 6e | 20 73 65 74 51 54 4d 6f |back..on| setQTMo|
|00003220| 76 69 65 20 6d 6f 76 69 | 65 54 79 70 65 2c 20 77 |vie movi|eType, w|
|00003230| 69 6e 64 6f 77 50 72 6f | 70 65 72 74 79 2c 20 6d |indowPro|perty, m|
|00003240| 6f 76 69 65 50 61 72 61 | 6d 0d 69 66 20 77 69 6e |oviePara|m.if win|
|00003250| 64 6f 77 50 72 6f 70 65 | 72 74 79 20 69 73 20 69 |dowPrope|rty is i|
|00003260| 6e 20 22 73 65 67 6d 65 | 6e 74 53 74 61 72 74 2c |n "segme|ntStart,|
|00003270| 63 75 72 72 54 69 6d 65 | 2c 73 65 67 6d 65 6e 74 |currTime|,segment|
|00003280| 45 6e 64 22 20 74 68 65 | 6e 0d 69 66 20 6d 6f 76 |End" the|n.if mov|
|00003290| 69 65 50 61 72 61 6d 20 | 69 73 20 6e 6f 74 20 61 |ieParam |is not a|
|000032a0| 6e 20 69 6e 74 65 67 65 | 72 20 6f 72 20 6d 6f 76 |n intege|r or mov|
|000032b0| 69 65 50 61 72 61 6d 20 | 3c 20 30 20 74 68 65 6e |ieParam |< 0 then|
|000032c0| 0d 69 66 20 65 72 72 6f | 72 4d 65 73 73 61 67 65 |.if erro|rMessage|
|000032d0| 20 28 22 69 6e 76 61 6c | 69 64 4d 6f 76 69 65 54 | ("inval|idMovieT|
|000032e0| 69 6d 65 22 2c 20 22 4f | 4b 22 29 3d 22 4f 4b 22 |ime", "O|K")="OK"|
|000032f0| 20 74 68 65 6e 0d 65 78 | 69 74 20 73 65 74 51 54 | then.ex|it setQT|
|00003300| 4d 6f 76 69 65 0d 65 6e | 64 20 69 66 0d 65 6e 64 |Movie.en|d if.end|
|00003310| 20 69 66 0d 65 6c 73 65 | 20 69 66 20 77 69 6e 64 | if.else| if wind|
|00003320| 6f 77 50 72 6f 70 65 72 | 74 79 20 69 73 20 69 6e |owProper|ty is in|
|00003330| 20 22 73 65 67 6d 65 6e | 74 50 6c 61 79 22 20 74 | "segmen|tPlay" t|
|00003340| 68 65 6e 0d 69 66 20 6d | 6f 76 69 65 50 61 72 61 |hen.if m|oviePara|
|00003350| 6d 20 69 73 20 6e 6f 74 | 20 69 6e 20 22 74 72 75 |m is not| in "tru|
|00003360| 65 2c 66 61 6c 73 65 22 | 20 74 68 65 6e 0d 69 66 |e,false"| then.if|
|00003370| 20 65 72 72 6f 72 4d 65 | 73 73 61 67 65 20 28 22 | errorMe|ssage ("|
|00003380| 69 6e 76 61 6c 69 64 4d | 6f 76 69 65 54 69 6d 65 |invalidM|ovieTime|
|00003390| 22 2c 20 22 4f 4b 22 29 | 3d 22 4f 4b 22 20 74 68 |", "OK")|="OK" th|
|000033a0| 65 6e 0d 65 78 69 74 20 | 73 65 74 51 54 4d 6f 76 |en.exit |setQTMov|
|000033b0| 69 65 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |ie.end i|f.end if|
|000033c0| 0d 65 6c 73 65 0d 69 66 | 20 65 72 72 6f 72 4d 65 |.else.if| errorMe|
|000033d0| 73 73 61 67 65 20 28 22 | 69 6e 76 61 6c 69 64 4d |ssage ("|invalidM|
|000033e0| 6f 76 69 65 50 72 6f 70 | 65 72 74 79 22 2c 20 22 |ovieProp|erty", "|
|000033f0| 4f 4b 22 29 3d 22 4f 4b | 22 20 74 68 65 6e 0d 65 |OK")="OK|" then.e|
|00003400| 78 69 74 20 73 65 74 51 | 54 4d 6f 76 69 65 0d 65 |xit setQ|TMovie.e|
|00003410| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 70 75 74 |nd if.en|d if.put|
|00003420| 20 67 65 74 4d 6f 76 69 | 65 49 44 28 6d 6f 76 69 | getMovi|eID(movi|
|00003430| 65 74 79 70 65 29 20 69 | 6e 74 6f 20 6d 6f 76 69 |etype) i|nto movi|
|00003440| 65 49 44 0d 69 66 20 6d | 6f 76 69 65 49 44 20 3c |eID.if m|ovieID <|
|00003450| 3e 20 22 30 22 20 74 68 | 65 6e 0d 73 65 74 20 76 |> "0" th|en.set v|
|00003460| 61 6c 75 65 28 77 69 6e | 64 6f 77 50 72 6f 70 65 |alue(win|dowPrope|
|00003470| 72 74 79 29 20 6f 66 20 | 77 69 6e 64 6f 77 20 69 |rty) of |window i|
|00003480| 64 20 6d 6f 76 69 65 49 | 44 20 74 6f 20 6d 6f 76 |d movieI|D to mov|
|00003490| 69 65 50 61 72 61 6d 0d | 65 6c 73 65 0d 65 78 69 |ieParam.|else.exi|
|000034a0| 74 20 73 65 74 51 54 4d | 6f 76 69 65 0d 65 6e 64 |t setQTM|ovie.end|
|000034b0| 20 69 66 0d 65 6e 64 20 | 73 65 74 51 54 4d 6f 76 | if.end |setQTMov|
|000034c0| 69 65 0d 0d 6f 6e 20 70 | 61 75 73 65 51 54 4d 6f |ie..on p|auseQTMo|
|000034d0| 76 69 65 20 6d 6f 76 69 | 65 54 79 70 65 0d 70 75 |vie movi|eType.pu|
|000034e0| 74 20 67 65 74 4d 6f 76 | 69 65 49 44 28 6d 6f 76 |t getMov|ieID(mov|
|000034f0| 69 65 74 79 70 65 29 20 | 69 6e 74 6f 20 6d 6f 76 |ietype) |into mov|
|00003500| 69 65 49 44 0d 69 66 20 | 6d 6f 76 69 65 49 44 20 |ieID.if |movieID |
|00003510| 3c 3e 20 22 30 22 20 74 | 68 65 6e 0d 73 65 6e 64 |<> "0" t|hen.send|
|00003520| 20 22 70 61 75 73 65 22 | 20 74 6f 20 77 69 6e 64 | "pause"| to wind|
|00003530| 6f 77 20 69 64 20 6d 6f | 76 69 65 49 44 0d 65 6e |ow id mo|vieID.en|
|00003540| 64 20 69 66 0d 65 6e 64 | 20 70 61 75 73 65 51 54 |d if.end| pauseQT|
|00003550| 4d 6f 76 69 65 0d 0d 6f | 6e 20 68 69 64 65 51 54 |Movie..o|n hideQT|
|00003560| 4d 6f 76 69 65 20 6d 6f | 76 69 65 54 79 70 65 0d |Movie mo|vieType.|
|00003570| 70 75 74 20 67 65 74 4d | 6f 76 69 65 49 44 28 6d |put getM|ovieID(m|
|00003580| 6f 76 69 65 54 79 70 65 | 29 20 69 6e 74 6f 20 6d |ovieType|) into m|
|00003590| 6f 76 69 65 49 44 0d 69 | 66 20 6d 6f 76 69 65 49 |ovieID.i|f movieI|
|000035a0| 44 20 3c 3e 20 22 30 22 | 20 74 68 65 6e 0d 68 69 |D <> "0"| then.hi|
|000035b0| 64 65 20 77 69 6e 64 6f | 77 20 69 64 20 6d 6f 76 |de windo|w id mov|
|000035c0| 69 65 49 44 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |ieID.end| if.end |
|000035d0| 68 69 64 65 51 54 4d 6f | 76 69 65 0d 0d 6f 6e 20 |hideQTMo|vie..on |
|000035e0| 73 68 6f 77 51 54 4d 6f | 76 69 65 20 6d 6f 76 69 |showQTMo|vie movi|
|000035f0| 65 54 79 70 65 0d 70 75 | 74 20 67 65 74 4d 6f 76 |eType.pu|t getMov|
|00003600| 69 65 49 44 28 6d 6f 76 | 69 65 74 79 70 65 29 20 |ieID(mov|ietype) |
|00003610| 69 6e 74 6f 20 6d 6f 76 | 69 65 49 44 0d 69 66 20 |into mov|ieID.if |
|00003620| 6d 6f 76 69 65 49 44 20 | 3c 3e 20 22 30 22 20 74 |movieID |<> "0" t|
|00003630| 68 65 6e 0d 73 68 6f 77 | 20 77 69 6e 64 6f 77 20 |hen.show| window |
|00003640| 69 64 20 6d 6f 76 69 65 | 49 44 0d 65 6e 64 20 69 |id movie|ID.end i|
|00003650| 66 0d 65 6e 64 20 73 68 | 6f 77 51 54 4d 6f 76 69 |f.end sh|owQTMovi|
|00003660| 65 0d 0d 6f 6e 20 64 69 | 73 70 6f 73 65 51 54 4d |e..on di|sposeQTM|
|00003670| 6f 76 69 65 20 6d 6f 76 | 69 65 54 79 70 65 0d 70 |ovie mov|ieType.p|
|00003680| 75 74 20 67 65 74 4d 6f | 76 69 65 49 44 28 6d 6f |ut getMo|vieID(mo|
|00003690| 76 69 65 74 79 70 65 29 | 20 69 6e 74 6f 20 6d 6f |vietype)| into mo|
|000036a0| 76 69 65 49 44 0d 69 66 | 20 6d 6f 76 69 65 49 44 |vieID.if| movieID|
|000036b0| 20 3c 3e 20 22 30 22 20 | 74 68 65 6e 0d 68 69 64 | <> "0" |then.hid|
|000036c0| 65 20 77 69 6e 64 6f 77 | 20 69 64 20 6d 6f 76 69 |e window| id movi|
|000036d0| 65 49 44 0d 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |eID.clos|e window|
|000036e0| 20 69 64 20 6d 6f 76 69 | 65 49 44 0d 65 6e 64 20 | id movi|eID.end |
|000036f0| 69 66 0d 65 6e 64 20 64 | 69 73 70 6f 73 65 51 54 |if.end d|isposeQT|
|00003700| 4d 6f 76 69 65 0d 0d 6f | 6e 20 70 61 75 73 65 54 |Movie..o|n pauseT|
|00003710| 6f 75 72 0d 67 6c 6f 62 | 61 6c 20 67 54 4f 55 52 |our.glob|al gTOUR|
|00003720| 4d 6f 76 69 65 0d 69 66 | 20 74 68 65 72 65 20 69 |Movie.if| there i|
|00003730| 73 20 61 20 77 69 6e 64 | 6f 77 20 69 64 20 67 54 |s a wind|ow id gT|
|00003740| 4f 55 52 4d 6f 76 69 65 | 20 74 68 65 6e 0d 70 6c |OURMovie| then.pl|
|00003750| 61 79 20 22 6d 6f 75 73 | 65 44 6f 77 6e 22 0d 64 |ay "mous|eDown".d|
|00003760| 69 73 70 6f 73 65 51 54 | 4d 6f 76 69 65 20 22 54 |isposeQT|Movie "T|
|00003770| 4f 55 52 22 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |OUR".end| if.end |
|00003780| 70 61 75 73 65 54 6f 75 | 72 0d 0d 66 75 6e 63 74 |pauseTou|r..funct|
|00003790| 69 6f 6e 20 63 68 65 63 | 6b 46 6f 72 51 75 69 63 |ion chec|kForQuic|
|000037a0| 6b 54 69 6d 65 20 72 65 | 73 75 6c 74 54 65 78 74 |kTime re|sultText|
|000037b0| 20 2d 2d 20 42 6f 6f 6c | 65 61 6e 0d 69 66 20 22 | -- Bool|ean.if "|
|000037c0| 65 72 72 6f 72 22 20 69 | 73 20 6e 6f 74 20 69 6e |error" i|s not in|
|000037d0| 20 72 65 73 75 6c 74 54 | 65 78 74 20 74 68 65 6e | resultT|ext then|
|000037e0| 0d 72 65 74 75 72 6e 20 | 22 74 72 75 65 22 0d 65 |.return |"true".e|
|000037f0| 6c 73 65 0d 69 66 20 72 | 65 73 75 6c 74 54 65 78 |lse.if r|esultTex|
|00003800| 74 20 63 6f 6e 74 61 69 | 6e 73 20 22 6e 6f 20 51 |t contai|ns "no Q|
|00003810| 75 69 63 6b 54 69 6d 65 | 20 49 6e 69 74 22 20 74 |uickTime| Init" t|
|00003820| 68 65 6e 0d 72 65 74 75 | 72 6e 20 65 72 72 6f 72 |hen.retu|rn error|
|00003830| 4d 65 73 73 61 67 65 20 | 28 22 6e 6f 51 75 69 63 |Message |("noQuic|
|00003840| 6b 54 69 6d 65 22 2c 20 | 22 4f 4b 22 29 0d 65 6c |kTime", |"OK").el|
|00003850| 73 65 20 69 66 20 72 65 | 73 75 6c 74 54 65 78 74 |se if re|sultText|
|00003860| 20 63 6f 6e 74 61 69 6e | 73 20 22 2d 31 22 20 74 | contain|s "-1" t|
|00003870| 68 65 6e 0d 72 65 74 75 | 72 6e 20 65 72 72 6f 72 |hen.retu|rn error|
|00003880| 4d 65 73 73 61 67 65 20 | 28 22 6f 6c 64 51 75 69 |Message |("oldQui|
|00003890| 63 6b 54 69 6d 65 22 2c | 20 22 4f 4b 22 29 0d 65 |ckTime",| "OK").e|
|000038a0| 6c 73 65 0d 72 65 74 75 | 72 6e 20 22 63 68 65 63 |lse.retu|rn "chec|
|000038b0| 6b 48 44 22 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |kHD".end| if.end |
|000038c0| 69 66 0d 65 6e 64 20 63 | 68 65 63 6b 46 6f 72 51 |if.end c|heckForQ|
|000038d0| 75 69 63 6b 54 69 6d 65 | 0d 0d 66 75 6e 63 74 69 |uickTime|..functi|
|000038e0| 6f 6e 20 6c 6f 6f 6b 46 | 6f 72 51 54 4d 6f 76 69 |on lookF|orQTMovi|
|000038f0| 65 20 6d 6f 76 69 65 4e | 61 6d 65 20 2d 2d 20 72 |e movieN|ame -- r|
|00003900| 65 74 75 72 6e 73 20 66 | 75 6c 6c 20 70 61 74 68 |eturns f|ull path|
|00003910| 20 6e 61 6d 65 20 6f 72 | 20 22 65 72 72 6f 72 22 | name or| "error"|
|00003920| 0d 70 75 74 20 22 66 61 | 6c 73 65 22 20 69 6e 74 |.put "fa|lse" int|
|00003930| 6f 20 63 6f 72 72 65 63 | 74 4d 6f 76 69 65 0d 70 |o correc|tMovie.p|
|00003940| 75 74 20 22 4f 4b 22 20 | 69 6e 74 6f 20 63 6f 6e |ut "OK" |into con|
|00003950| 74 69 6e 75 65 53 65 61 | 72 63 68 0d 72 65 70 65 |tinueSea|rch.repe|
|00003960| 61 74 20 75 6e 74 69 6c | 20 28 63 6f 72 72 65 63 |at until| (correc|
|00003970| 74 4d 6f 76 69 65 3d 22 | 74 72 75 65 22 29 20 6f |tMovie="|true") o|
|00003980| 72 20 28 63 6f 6e 74 69 | 6e 75 65 53 65 61 72 63 |r (conti|nueSearc|
|00003990| 68 3d 22 63 61 6e 63 65 | 6c 22 29 0d 70 75 74 20 |h="cance|l").put |
|000039a0| 67 65 74 4d 6f 76 69 65 | 28 6d 6f 76 69 65 4e 61 |getMovie|(movieNa|
|000039b0| 6d 65 2c 22 63 61 6e 74 | 66 69 6e 64 6d 6f 76 69 |me,"cant|findmovi|
|000039c0| 65 22 2c 22 6c 6f 6f 6b | 69 6e 43 44 22 29 20 69 |e","look|inCD") i|
|000039d0| 6e 74 6f 20 70 61 74 68 | 4e 61 6d 65 0d 69 66 20 |nto path|Name.if |
|000039e0| 70 61 74 68 4e 61 6d 65 | 20 69 73 20 65 6d 70 74 |pathName| is empt|
|000039f0| 79 20 74 68 65 6e 0d 70 | 75 74 20 65 72 72 6f 72 |y then.p|ut error|
|00003a00| 4d 65 73 73 61 67 65 20 | 28 22 6e 6f 4d 6f 76 69 |Message |("noMovi|
|00003a10| 65 43 68 6f 69 63 65 22 | 2c 22 63 61 6e 63 65 6c |eChoice"|,"cancel|
|00003a20| 22 29 c2 0d 69 6e 74 6f | 20 63 6f 6e 74 69 6e 75 |")..into| continu|
|00003a30| 65 53 65 61 72 63 68 0d | 65 6c 73 65 20 69 66 20 |eSearch.|else if |
|00003a40| 67 65 74 46 69 6c 65 4e | 61 6d 65 28 70 61 74 68 |getFileN|ame(path|
|00003a50| 4e 61 6d 65 29 20 3c 3e | 20 6d 6f 76 69 65 4e 61 |Name) <>| movieNa|
|00003a60| 6d 65 20 74 68 65 6e 0d | 70 75 74 20 65 72 72 6f |me then.|put erro|
|00003a70| 72 4d 65 73 73 61 67 65 | 20 28 22 77 72 6f 6e 67 |rMessage| ("wrong|
|00003a80| 4d 6f 76 69 65 43 68 6f | 69 63 65 22 2c 20 22 63 |MovieCho|ice", "c|
|00003a90| 61 6e 63 65 6c 22 29 c2 | 0d 69 6e 74 6f 20 63 6f |ancel").|.into co|
|00003aa0| 6e 74 69 6e 75 65 53 65 | 61 72 63 68 0d 65 6c 73 |ntinueSe|arch.els|
|00003ab0| 65 0d 72 65 74 75 72 6e | 20 70 61 74 68 4e 61 6d |e.return| pathNam|
|00003ac0| 65 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |e.end if|.end rep|
|00003ad0| 65 61 74 0d 72 65 74 75 | 72 6e 20 22 65 72 72 6f |eat.retu|rn "erro|
|00003ae0| 72 22 0d 65 6e 64 20 6c | 6f 6f 6b 46 6f 72 51 54 |r".end l|ookForQT|
|00003af0| 4d 6f 76 69 65 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |Movie..f|unction |
|00003b00| 67 65 74 4d 6f 76 69 65 | 20 66 69 6c 65 4e 61 6d |getMovie| fileNam|
|00003b10| 65 2c 20 62 65 67 69 6e | 52 65 71 75 65 73 74 2c |e, begin|Request,|
|00003b20| 20 65 6e 64 52 65 71 75 | 65 73 74 0d 2d 2d 20 68 | endRequ|est.-- h|
|00003b30| 65 6c 70 20 74 68 65 20 | 75 73 65 72 20 6c 6f 6f |elp the |user loo|
|00003b40| 6b 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |k.if the|re is a |
|00003b50| 63 64 20 66 6c 64 20 62 | 65 67 69 6e 52 65 71 75 |cd fld b|eginRequ|
|00003b60| 65 73 74 20 6f 66 20 63 | 61 72 64 20 22 45 72 72 |est of c|ard "Err|
|00003b70| 6f 72 5f 4d 65 73 73 61 | 67 65 73 22 20 74 68 65 |or_Messa|ges" the|
|00003b80| 6e 0d 70 75 74 20 63 64 | 20 66 6c 64 20 62 65 67 |n.put cd| fld beg|
|00003b90| 69 6e 52 65 71 75 65 73 | 74 20 6f 66 20 63 61 72 |inReques|t of car|
|00003ba0| 64 20 22 45 72 72 6f 72 | 5f 4d 65 73 73 61 67 65 |d "Error|_Message|
|00003bb0| 73 22 20 69 6e 74 6f 20 | 74 68 65 43 6f 6e 74 61 |s" into |theConta|
|00003bc0| 69 6e 65 72 0d 65 6c 73 | 65 0d 70 75 74 20 22 43 |iner.els|e.put "C|
|00003bd0| 61 6e d5 74 20 66 69 6e | 64 20 66 69 6c 65 22 20 |an.t fin|d file" |
|00003be0| 26 26 20 71 75 6f 74 65 | 20 69 6e 74 6f 20 74 68 |&& quote| into th|
|00003bf0| 65 43 6f 6e 74 61 69 6e | 65 72 0d 65 6e 64 20 69 |eContain|er.end i|
|00003c00| 66 0d 70 75 74 20 66 69 | 6c 65 4e 61 6d 65 20 61 |f.put fi|leName a|
|00003c10| 66 74 65 72 20 74 68 65 | 43 6f 6e 74 61 69 6e 65 |fter the|Containe|
|00003c20| 72 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |r.if the|re is a |
|00003c30| 63 64 20 66 6c 64 20 65 | 6e 64 52 65 71 75 65 73 |cd fld e|ndReques|
|00003c40| 74 20 6f 66 20 63 61 72 | 64 20 22 45 72 72 6f 72 |t of car|d "Error|
|00003c50| 5f 4d 65 73 73 61 67 65 | 73 22 20 74 68 65 6e 0d |_Message|s" then.|
|00003c60| 70 75 74 20 63 64 20 66 | 6c 64 20 65 6e 64 52 65 |put cd f|ld endRe|
|00003c70| 71 75 65 73 74 20 6f 66 | 20 63 61 72 64 20 22 45 |quest of| card "E|
|00003c80| 72 72 6f 72 5f 4d 65 73 | 73 61 67 65 73 22 20 61 |rror_Mes|sages" a|
|00003c90| 66 74 65 72 20 74 68 65 | 43 6f 6e 74 61 69 6e 65 |fter the|Containe|
|00003ca0| 72 0d 65 6c 73 65 0d 70 | 75 74 20 71 75 6f 74 65 |r.else.p|ut quote|
|00003cb0| 20 61 66 74 65 72 20 74 | 68 65 43 6f 6e 74 61 69 | after t|heContai|
|00003cc0| 6e 65 72 0d 65 6e 64 20 | 69 66 0d 61 6e 73 77 65 |ner.end |if.answe|
|00003cd0| 72 20 66 69 6c 65 20 74 | 68 65 43 6f 6e 74 61 69 |r file t|heContai|
|00003ce0| 6e 65 72 20 6f 66 20 74 | 79 70 65 20 22 4d 6f 6f |ner of t|ype "Moo|
|00003cf0| 56 22 0d 72 65 74 75 72 | 6e 20 69 74 0d 65 6e 64 |V".retur|n it.end|
|00003d00| 20 67 65 74 4d 6f 76 69 | 65 0d 0d 6f 6e 20 63 6c | getMovi|e..on cl|
|00003d10| 6f 73 65 4d 6f 76 69 65 | 73 0d 64 69 73 70 6f 73 |oseMovie|s.dispos|
|00003d20| 65 51 54 4d 6f 76 69 65 | 20 22 52 49 54 41 22 0d |eQTMovie| "RITA".|
|00003d30| 64 69 73 70 6f 73 65 51 | 54 4d 6f 76 69 65 20 22 |disposeQ|TMovie "|
|00003d40| 76 69 64 65 6f 22 0d 64 | 69 73 70 6f 73 65 51 54 |video".d|isposeQT|
|00003d50| 4d 6f 76 69 65 20 22 61 | 75 64 69 6f 22 0d 64 69 |Movie "a|udio".di|
|00003d60| 73 70 6f 73 65 51 54 4d | 6f 76 69 65 20 22 4a 50 |sposeQTM|ovie "JP|
|00003d70| 45 47 22 0d 64 69 73 70 | 6f 73 65 51 54 4d 6f 76 |EG".disp|oseQTMov|
|00003d80| 69 65 20 22 54 4f 55 52 | 22 0d 65 6e 64 20 63 6c |ie "TOUR|".end cl|
|00003d90| 6f 73 65 4d 6f 76 69 65 | 73 0d 0d 2d 2d 20 63 6f |oseMovie|s..-- co|
|00003da0| 6c 6f 72 69 7a 65 48 43 | 2e 0d 0d 66 75 6e 63 74 |lorizeHC|...funct|
|00003db0| 69 6f 6e 20 69 6e 73 74 | 61 6c 6c 43 6f 6c 6f 72 |ion inst|allColor|
|00003dc0| 69 7a 65 48 43 20 2d 2d | 20 42 6f 6f 6c 65 61 6e |izeHC --| Boolean|
|00003dd0| 2c 20 74 72 75 65 20 6d | 65 61 6e 73 20 73 75 63 |, true m|eans suc|
|00003de0| 63 65 73 73 66 75 6c 0d | 73 65 74 20 63 75 72 73 |cessful.|set curs|
|00003df0| 6f 72 20 74 6f 20 62 75 | 73 79 0d 69 66 20 63 68 |or to bu|sy.if ch|
|00003e00| 65 63 6b 45 6e 76 69 72 | 6f 6e 28 29 20 69 73 20 |eckEnvir|on() is |
|00003e10| 6e 6f 74 20 22 74 72 75 | 65 22 20 74 68 65 6e 0d |not "tru|e" then.|
|00003e20| 72 65 74 75 72 6e 20 22 | 66 61 6c 73 65 22 0d 65 |return "|false".e|
|00003e30| 6e 64 20 69 66 0d 72 65 | 74 75 72 6e 20 22 74 72 |nd if.re|turn "tr|
|00003e40| 75 65 22 0d 65 6e 64 20 | 69 6e 73 74 61 6c 6c 43 |ue".end |installC|
|00003e50| 6f 6c 6f 72 69 7a 65 48 | 43 0d 0d 66 75 6e 63 74 |olorizeH|C..funct|
|00003e60| 69 6f 6e 20 63 68 65 63 | 6b 45 6e 76 69 72 6f 6e |ion chec|kEnviron|
|00003e70| 20 2d 2d 20 42 6f 6f 6c | 65 61 6e 2c 20 74 72 75 | -- Bool|ean, tru|
|00003e80| 65 20 6d 65 61 6e 73 20 | 4f 4b 20 74 6f 20 70 72 |e means |OK to pr|
|00003e90| 6f 63 65 65 64 0d 67 6c | 6f 62 61 6c 20 67 58 43 |oceed.gl|obal gXC|
|00003ea0| 4d 44 45 72 72 6f 72 20 | 2d 2d 20 75 73 65 64 20 |MDError |-- used |
|00003eb0| 62 79 20 4d 61 78 44 65 | 70 74 68 28 29 20 74 6f |by MaxDe|pth() to|
|00003ec0| 20 73 74 6f 72 65 20 72 | 65 73 75 6c 74 73 0d 70 | store r|esults.p|
|00003ed0| 75 74 20 22 22 20 69 6e | 74 6f 20 67 58 43 4d 44 |ut "" in|to gXCMD|
|00003ee0| 45 72 72 6f 72 0d 70 75 | 74 20 4d 61 78 44 65 70 |Error.pu|t MaxDep|
|00003ef0| 74 68 28 29 20 69 6e 74 | 6f 20 70 69 78 65 6c 44 |th() int|o pixelD|
|00003f00| 65 70 74 68 20 2d 2d 20 | 4d 61 78 44 65 70 74 68 |epth -- |MaxDepth|
|00003f10| 20 69 73 20 61 6e 20 58 | 46 43 4e 0d 69 66 20 67 | is an X|FCN.if g|
|00003f20| 58 43 4d 44 45 72 72 6f | 72 20 69 73 20 6e 6f 74 |XCMDErro|r is not|
|00003f30| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 70 75 74 20 | empty t|hen.put |
|00003f40| 22 22 20 69 6e 74 6f 20 | 67 58 43 4d 44 45 72 72 |"" into |gXCMDErr|
|00003f50| 6f 72 0d 72 65 74 75 72 | 6e 20 65 72 72 6f 72 4d |or.retur|n errorM|
|00003f60| 65 73 73 61 67 65 20 28 | 22 67 58 43 4d 44 45 72 |essage (|"gXCMDEr|
|00003f70| 72 6f 72 22 2c 20 22 4f | 4b 22 29 0d 65 6e 64 20 |ror", "O|K").end |
|00003f80| 69 66 0d 69 66 20 70 69 | 78 65 6c 44 65 70 74 68 |if.if pi|xelDepth|
|00003f90| 20 3c 20 38 20 74 68 65 | 6e 0d 72 65 74 75 72 6e | < 8 the|n.return|
|00003fa0| 20 65 72 72 6f 72 4d 65 | 73 73 61 67 65 20 28 22 | errorMe|ssage ("|
|00003fb0| 62 69 74 44 65 70 74 68 | 45 72 72 6f 72 22 2c 20 |bitDepth|Error", |
|00003fc0| 22 4f 4b 22 29 0d 65 6c | 73 65 20 69 66 20 28 70 |"OK").el|se if (p|
|00003fd0| 69 78 65 6c 44 65 70 74 | 68 3d 38 29 20 61 6e 64 |ixelDept|h=8) and|
|00003fe0| 20 28 74 68 65 20 68 65 | 61 70 53 70 61 63 65 20 | (the he|apSpace |
|00003ff0| 3c 20 33 38 34 30 30 30 | 29 20 74 68 65 6e 0d 72 |< 384000|) then.r|
|00004000| 65 74 75 72 6e 20 65 72 | 72 6f 72 4d 65 73 73 61 |eturn er|rorMessa|
|00004010| 67 65 20 28 22 6c 6f 77 | 4d 65 6d 6f 72 79 5f 38 |ge ("low|Memory_8|
|00004020| 62 69 74 43 6f 6c 6f 72 | 22 2c 20 22 4f 4b 22 29 |bitColor|", "OK")|
|00004030| 0d 65 6c 73 65 20 69 66 | 20 28 70 69 78 65 6c 44 |.else if| (pixelD|
|00004040| 65 70 74 68 3d 31 36 29 | 20 61 6e 64 20 28 74 68 |epth=16)| and (th|
|00004050| 65 20 68 65 61 70 53 70 | 61 63 65 20 3c 20 37 32 |e heapSp|ace < 72|
|00004060| 31 30 30 30 29 20 74 68 | 65 6e 0d 72 65 74 75 72 |1000) th|en.retur|
|00004070| 6e 20 65 72 72 6f 72 4d | 65 73 73 61 67 65 20 28 |n errorM|essage (|
|00004080| 22 6c 6f 77 4d 65 6d 6f | 72 79 5f 31 36 62 69 74 |"lowMemo|ry_16bit|
|00004090| 43 6f 6c 6f 72 22 2c 20 | 22 4f 4b 22 29 0d 65 6c |Color", |"OK").el|
|000040a0| 73 65 20 69 66 20 28 70 | 69 78 65 6c 44 65 70 74 |se if (p|ixelDept|
|000040b0| 68 20 b3 20 32 34 29 20 | 61 6e 64 20 28 74 68 65 |h . 24) |and (the|
|000040c0| 20 68 65 61 70 53 70 61 | 63 65 20 3c 20 31 34 32 | heapSpa|ce < 142|
|000040d0| 31 30 30 30 29 20 74 68 | 65 6e 0d 72 65 74 75 72 |1000) th|en.retur|
|000040e0| 6e 20 65 72 72 6f 72 4d | 65 73 73 61 67 65 20 28 |n errorM|essage (|
|000040f0| 22 6c 6f 77 4d 65 6d 6f | 72 79 5f 32 34 62 69 74 |"lowMemo|ry_24bit|
|00004100| 43 6f 6c 6f 72 22 2c 20 | 22 4f 4b 22 29 0d 65 6c |Color", |"OK").el|
|00004110| 73 65 20 69 66 20 61 63 | 74 69 76 61 74 65 43 6f |se if ac|tivateCo|
|00004120| 6c 6f 72 28 29 20 69 73 | 20 6e 6f 74 20 65 6d 70 |lor() is| not emp|
|00004130| 74 79 20 74 68 65 6e 0d | 72 65 74 75 72 6e 20 65 |ty then.|return e|
|00004140| 72 72 6f 72 4d 65 73 73 | 61 67 65 20 28 22 6e 6f |rrorMess|age ("no|
|00004150| 43 6f 6c 6f 72 51 75 69 | 63 6b 44 72 61 77 22 2c |ColorQui|ckDraw",|
|00004160| 20 22 4f 4b 22 29 0d 65 | 6c 73 65 0d 72 65 74 75 | "OK").e|lse.retu|
|00004170| 72 6e 20 22 74 72 75 65 | 22 0d 65 6e 64 20 69 66 |rn "true|".end if|
|00004180| 0d 72 65 74 75 72 6e 20 | 22 66 61 6c 73 65 22 0d |.return |"false".|
|00004190| 65 6e 64 20 63 68 65 63 | 6b 45 6e 76 69 72 6f 6e |end chec|kEnviron|
|000041a0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 61 63 74 69 76 |..functi|on activ|
|000041b0| 61 74 65 43 6f 6c 6f 72 | 20 2d 2d 20 73 65 74 73 |ateColor| -- sets|
|000041c0| 20 74 68 65 20 67 6c 6f | 62 61 6c 20 67 4f 4b 54 | the glo|bal gOKT|
|000041d0| 6f 43 6f 6c 6f 72 69 7a | 65 0d 67 6c 6f 62 61 6c |oColoriz|e.global|
|000041e0| 20 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 0d 70 | gOKToCo|lorize.p|
|000041f0| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 67 4f |ut empty| into gO|
|00004200| 4b 54 6f 43 6f 6c 6f 72 | 69 7a 65 0d 63 6f 6c 6f |KToColor|ize.colo|
|00004210| 72 69 7a 65 48 43 20 22 | 61 73 73 69 67 6e 54 6f |rizeHC "|assignTo|
|00004220| 46 72 6f 6e 74 22 0d 69 | 66 20 74 68 65 20 72 65 |Front".i|f the re|
|00004230| 73 75 6c 74 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |sult is |not empt|
|00004240| 79 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 72 |y then.p|ut the r|
|00004250| 65 73 75 6c 74 20 69 6e | 74 6f 20 67 4f 4b 54 6f |esult in|to gOKTo|
|00004260| 43 6f 6c 6f 72 69 7a 65 | 0d 72 65 74 75 72 6e 20 |Colorize|.return |
|00004270| 67 4f 4b 54 6f 43 6f 6c | 6f 72 69 7a 65 0d 65 6e |gOKToCol|orize.en|
|00004280| 64 20 69 66 0d 65 6e 64 | 20 61 63 74 69 76 61 74 |d if.end| activat|
|00004290| 65 43 6f 6c 6f 72 0d 0d | 6f 6e 20 63 6f 6c 6f 72 |eColor..|on color|
|000042a0| 69 7a 65 48 43 20 2d 2d | 20 63 68 65 63 6b 73 20 |izeHC --| checks |
|000042b0| 58 43 4d 44 20 63 61 6c | 6c 0d 67 6c 6f 62 61 6c |XCMD cal|l.global|
|000042c0| 20 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 0d 69 | gOKToCo|lorize.i|
|000042d0| 66 20 28 67 4f 4b 54 6f | 43 6f 6c 6f 72 69 7a 65 |f (gOKTo|Colorize|
|000042e0| 20 69 73 20 65 6d 70 74 | 79 29 20 74 68 65 6e 0d | is empt|y) then.|
|000042f0| 70 61 73 73 20 63 6f 6c | 6f 72 69 7a 65 48 43 0d |pass col|orizeHC.|
|00004300| 65 6c 73 65 0d 70 75 74 | 20 65 72 72 6f 72 4d 65 |else.put| errorMe|
|00004310| 73 73 61 67 65 20 28 22 | 6e 6f 43 6f 6c 6f 72 22 |ssage ("|noColor"|
|00004320| 2c 20 22 4f 4b 22 29 0d | 65 6e 64 20 69 66 0d 65 |, "OK").|end if.e|
|00004330| 6e 64 20 63 6f 6c 6f 72 | 69 7a 65 48 43 0d 0d 6f |nd color|izeHC..o|
|00004340| 6e 20 64 69 73 70 6f 73 | 65 43 6f 6c 6f 72 69 7a |n dispos|eColoriz|
|00004350| 65 48 43 20 2d 2d 20 63 | 6c 65 61 72 20 6d 65 6d |eHC -- c|lear mem|
|00004360| 6f 72 79 0d 6d 61 78 6d | 65 6d 0d 6c 6f 63 6b 20 |ory.maxm|em.lock |
|00004370| 73 63 72 65 65 6e 0d 63 | 6f 6c 6f 72 69 7a 65 48 |screen.c|olorizeH|
|00004380| 43 20 22 64 69 73 70 6f | 73 65 22 0d 75 6e 6c 6f |C "dispo|se".unlo|
|00004390| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 64 69 |ck scree|n.end di|
|000043a0| 73 70 6f 73 65 43 6f 6c | 6f 72 69 7a 65 48 43 0d |sposeCol|orizeHC.|
|000043b0| 0d 2d 2d 20 49 6e 74 65 | 72 66 61 63 65 20 65 6c |.-- Inte|rface el|
|000043c0| 65 6d 65 6e 74 73 20 63 | 6f 6d 6d 6f 6e 20 74 6f |ements c|ommon to|
|000043d0| 20 61 6c 6c 20 62 61 63 | 6b 67 72 6f 75 6e 64 73 | all bac|kgrounds|
|000043e0| 0d 0d 6f 6e 20 6f 70 65 | 6e 41 75 64 69 6f 20 74 |..on ope|nAudio t|
|000043f0| 68 65 54 65 6d 70 6c 61 | 74 65 0d 67 6c 6f 62 61 |heTempla|te.globa|
|00004400| 6c 20 67 41 75 64 69 6f | 4d 6f 76 69 65 0d 70 75 |l gAudio|Movie.pu|
|00004410| 74 20 22 22 20 69 6e 74 | 6f 20 74 68 65 41 75 64 |t "" int|o theAud|
|00004420| 69 6f 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |io.if th|ere is a|
|00004430| 20 63 61 72 64 20 69 64 | 20 74 68 65 54 65 6d 70 | card id| theTemp|
|00004440| 6c 61 74 65 20 74 68 65 | 6e 0d 70 75 74 20 62 67 |late the|n.put bg|
|00004450| 20 66 6c 64 20 69 64 20 | 36 20 6f 66 20 63 64 20 | fld id |6 of cd |
|00004460| 69 64 20 74 68 65 54 65 | 6d 70 6c 61 74 65 20 69 |id theTe|mplate i|
|00004470| 6e 74 6f 20 74 68 65 41 | 75 64 69 6f 0d 65 6e 64 |nto theA|udio.end|
|00004480| 20 69 66 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 | if.if t|here is |
|00004490| 61 20 77 69 6e 64 6f 77 | 20 69 64 20 67 41 75 64 |a window| id gAud|
|000044a0| 69 6f 4d 6f 76 69 65 20 | 74 68 65 6e 0d 69 66 20 |ioMovie |then.if |
|000044b0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 77 69 6e 64 |the name| of wind|
|000044c0| 6f 77 20 69 64 20 67 41 | 75 64 69 6f 4d 6f 76 69 |ow id gA|udioMovi|
|000044d0| 65 3d 74 68 65 41 75 64 | 69 6f 20 74 68 65 6e 0d |e=theAud|io then.|
|000044e0| 65 78 69 74 20 6f 70 65 | 6e 41 75 64 69 6f 0d 65 |exit ope|nAudio.e|
|000044f0| 6c 73 65 0d 64 69 73 70 | 6f 73 65 51 54 4d 6f 76 |lse.disp|oseQTMov|
|00004500| 69 65 20 22 61 75 64 69 | 6f 22 0d 65 6e 64 20 69 |ie "audi|o".end i|
|00004510| 66 0d 65 6e 64 20 69 66 | 0d 69 66 20 74 68 65 41 |f.end if|.if theA|
|00004520| 75 64 69 6f 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |udio is |not empt|
|00004530| 79 20 74 68 65 6e 0d 6f | 70 65 6e 51 54 4d 6f 76 |y then.o|penQTMov|
|00004540| 69 65 20 74 68 65 41 75 | 64 69 6f 2c 22 61 75 64 |ie theAu|dio,"aud|
|00004550| 69 6f 22 2c 22 30 2c 30 | 2c 30 2c 30 22 0d 65 6e |io","0,0|,0,0".en|
|00004560| 64 20 69 66 0d 65 6e 64 | 20 6f 70 65 6e 41 75 64 |d if.end| openAud|
|00004570| 69 6f 0d 0d 6f 6e 20 67 | 65 74 47 65 6e 49 6e 66 |io..on g|etGenInf|
|00004580| 6f 72 6d 61 74 69 6f 6e | 20 74 68 65 50 61 72 61 |ormation| thePara|
|00004590| 6d 0d 67 6c 6f 62 61 6c | 20 67 52 49 54 41 4d 6f |m.global| gRITAMo|
|000045a0| 76 69 65 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |vie.if t|here is |
|000045b0| 6e 6f 74 20 61 20 77 69 | 6e 64 6f 77 20 69 64 20 |not a wi|ndow id |
|000045c0| 67 52 49 54 41 4d 6f 76 | 69 65 20 74 68 65 6e 0d |gRITAMov|ie then.|
|000045d0| 6f 70 65 6e 51 54 4d 6f | 76 69 65 20 22 44 69 73 |openQTMo|vie "Dis|
|000045e0| 70 61 74 63 68 2e 41 75 | 64 69 6f 22 2c 22 52 49 |patch.Au|dio","RI|
|000045f0| 54 41 22 2c 22 30 2c 30 | 2c 30 2c 30 22 0d 65 6e |TA","0,0|,0,0".en|
|00004600| 64 20 69 66 0d 69 66 20 | 6c 6f 61 64 47 65 6e 41 |d if.if |loadGenA|
|00004610| 75 64 69 6f 28 74 68 65 | 50 61 72 61 6d 29 20 74 |udio(the|Param) t|
|00004620| 68 65 6e 0d 73 65 74 51 | 54 4d 6f 76 69 65 20 22 |hen.setQ|TMovie "|
|00004630| 52 49 54 41 22 2c 22 73 | 65 67 6d 65 6e 74 50 6c |RITA","s|egmentPl|
|00004640| 61 79 22 2c 22 74 72 75 | 65 22 0d 73 65 6e 64 20 |ay","tru|e".send |
|00004650| 69 64 6c 65 20 74 6f 20 | 77 69 6e 64 6f 77 20 69 |idle to |window i|
|00004660| 64 20 67 52 49 54 41 4d | 6f 76 69 65 0d 65 6e 64 |d gRITAM|ovie.end|
|00004670| 20 69 66 0d 73 65 6e 64 | 20 69 64 6c 65 20 74 6f | if.send| idle to|
|00004680| 20 77 69 6e 64 6f 77 20 | 69 64 20 67 52 49 54 41 | window |id gRITA|
|00004690| 4d 6f 76 69 65 0d 69 66 | 20 28 73 68 6f 72 74 20 |Movie.if| (short |
|000046a0| 69 64 20 6f 66 20 74 68 | 69 73 20 62 67 3d 22 34 |id of th|is bg="4|
|000046b0| 30 30 39 22 29 20 6f 72 | 20 28 74 68 65 20 73 68 |009") or| (the sh|
|000046c0| 6f 72 74 20 69 64 20 6f | 66 20 74 68 69 73 20 62 |ort id o|f this b|
|000046d0| 67 3d 22 39 35 38 38 22 | 29 20 74 68 65 6e 0d 73 |g="9588"|) then.s|
|000046e0| 65 6e 64 20 69 64 6c 65 | 20 74 6f 20 77 69 6e 64 |end idle| to wind|
|000046f0| 6f 77 20 69 64 20 67 52 | 49 54 41 4d 6f 76 69 65 |ow id gR|ITAMovie|
|00004700| 0d 70 75 74 20 6c 69 6e | 65 20 74 68 65 50 61 72 |.put lin|e thePar|
|00004710| 61 6d 20 6f 66 20 63 64 | 20 66 6c 64 20 69 64 20 |am of cd| fld id |
|00004720| 33 34 20 6f 66 20 63 64 | 20 69 64 20 39 33 32 39 |34 of cd| id 9329|
|00004730| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 73 65 | into th|eText.se|
|00004740| 6e 64 20 69 64 6c 65 20 | 74 6f 20 77 69 6e 64 6f |nd idle |to windo|
|00004750| 77 20 69 64 20 67 52 49 | 54 41 4d 6f 76 69 65 0d |w id gRI|TAMovie.|
|00004760| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 62 67 20 66 |put "" i|nto bg f|
|00004770| 6c 64 20 74 65 78 74 5f | 4d 65 73 73 61 67 65 73 |ld text_|Messages|
|00004780| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 6b 3d 31 |.repeat |with k=1|
|00004790| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|000047a0| 66 20 77 6f 72 64 73 20 | 69 6e 20 74 68 65 54 65 |f words |in theTe|
|000047b0| 78 74 0d 70 75 74 20 77 | 6f 72 64 20 6b 20 6f 66 |xt.put w|ord k of|
|000047c0| 20 74 68 65 54 65 78 74 | 20 26 20 73 70 61 63 65 | theText| & space|
|000047d0| 20 61 66 74 65 72 20 62 | 67 20 66 6c 64 20 22 74 | after b|g fld "t|
|000047e0| 65 78 74 5f 4d 65 73 73 | 61 67 65 73 22 0d 75 6e |ext_Mess|ages".un|
|000047f0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 73 65 6e 64 |lock scr|een.send|
|00004800| 20 69 64 6c 65 20 74 6f | 20 77 69 6e 64 6f 77 20 | idle to| window |
|00004810| 69 64 20 67 52 49 54 41 | 4d 6f 76 69 65 0d 65 6e |id gRITA|Movie.en|
|00004820| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 69 66 0d |d repeat|.end if.|
|00004830| 65 6e 64 20 67 65 74 47 | 65 6e 49 6e 66 6f 72 6d |end getG|enInform|
|00004840| 61 74 69 6f 6e 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |ation..f|unction |
|00004850| 67 65 74 54 65 6d 70 6c | 61 74 65 53 6f 75 72 63 |getTempl|ateSourc|
|00004860| 65 20 63 61 72 64 49 44 | 0d 67 6c 6f 62 61 6c 20 |e cardID|.global |
|00004870| 67 42 47 54 65 6d 70 6c | 61 74 65 43 61 72 64 20 |gBGTempl|ateCard |
|00004880| 2d 2d 20 73 74 61 74 69 | 63 0d 69 66 20 74 68 65 |-- stati|c.if the|
|00004890| 72 65 20 69 73 20 61 20 | 63 64 20 69 64 20 63 61 |re is a |cd id ca|
|000048a0| 72 64 49 44 20 74 68 65 | 6e 0d 70 75 74 20 63 61 |rdID the|n.put ca|
|000048b0| 72 64 49 44 20 69 6e 74 | 6f 20 67 42 47 54 65 6d |rdID int|o gBGTem|
|000048c0| 70 6c 61 74 65 43 61 72 | 64 0d 65 6e 64 20 69 66 |plateCar|d.end if|
|000048d0| 0d 72 65 74 75 72 6e 20 | 67 42 47 54 65 6d 70 6c |.return |gBGTempl|
|000048e0| 61 74 65 43 61 72 64 0d | 65 6e 64 20 67 65 74 54 |ateCard.|end getT|
|000048f0| 65 6d 70 6c 61 74 65 53 | 6f 75 72 63 65 0d 0d 66 |emplateS|ource..f|
|00004900| 75 6e 63 74 69 6f 6e 20 | 6c 6f 61 64 41 75 64 69 |unction |loadAudi|
|00004910| 6f 20 73 6f 75 72 63 65 | 49 44 2c 20 73 6f 75 72 |o source|ID, sour|
|00004920| 63 65 4c 69 6e 65 20 2d | 2d 20 42 6f 6f 6c 65 61 |ceLine -|- Boolea|
|00004930| 6e 0d 70 75 74 20 6c 69 | 6e 65 20 73 6f 75 72 63 |n.put li|ne sourc|
|00004940| 65 4c 69 6e 65 20 6f 66 | 20 62 67 20 66 6c 64 20 |eLine of| bg fld |
|00004950| 49 44 20 33 20 6f 66 20 | 63 64 20 69 64 20 73 6f |ID 3 of |cd id so|
|00004960| 75 72 63 65 49 44 20 69 | 6e 74 6f 20 74 68 65 53 |urceID i|nto theS|
|00004970| 74 61 72 74 0d 70 75 74 | 20 6c 69 6e 65 20 73 6f |tart.put| line so|
|00004980| 75 72 63 65 4c 69 6e 65 | 20 6f 66 20 62 67 20 66 |urceLine| of bg f|
|00004990| 6c 64 20 49 44 20 35 20 | 6f 66 20 63 64 20 69 64 |ld ID 5 |of cd id|
|000049a0| 20 73 6f 75 72 63 65 49 | 44 20 69 6e 74 6f 20 74 | sourceI|D into t|
|000049b0| 68 65 45 6e 64 0d 69 66 | 20 63 68 65 63 6b 50 61 |heEnd.if| checkPa|
|000049c0| 72 61 6d 28 74 68 65 53 | 74 61 72 74 29 20 3d 20 |ram(theS|tart) = |
|000049d0| 22 66 61 6c 73 65 22 20 | 74 68 65 6e 20 72 65 74 |"false" |then ret|
|000049e0| 75 72 6e 20 22 66 61 6c | 73 65 22 0d 69 66 20 63 |urn "fal|se".if c|
|000049f0| 68 65 63 6b 50 61 72 61 | 6d 28 74 68 65 45 6e 64 |heckPara|m(theEnd|
|00004a00| 29 20 3d 20 22 66 61 6c | 73 65 22 20 74 68 65 6e |) = "fal|se" then|
|00004a10| 20 72 65 74 75 72 6e 20 | 22 66 61 6c 73 65 22 0d | return |"false".|
|00004a20| 69 66 20 67 65 74 4d 6f | 76 69 65 49 44 28 22 61 |if getMo|vieID("a|
|00004a30| 75 64 69 6f 22 29 20 3d | 20 22 30 22 20 74 68 65 |udio") =| "0" the|
|00004a40| 6e 20 72 65 74 75 72 6e | 20 22 66 61 6c 73 65 22 |n return| "false"|
|00004a50| 0d 70 75 74 20 6d 61 78 | 28 74 68 65 53 74 61 72 |.put max|(theStar|
|00004a60| 74 2d 34 30 30 2c 30 29 | 20 69 6e 74 6f 20 74 68 |t-400,0)| into th|
|00004a70| 65 53 74 61 72 74 0d 73 | 65 74 51 54 4d 6f 76 69 |eStart.s|etQTMovi|
|00004a80| 65 20 22 61 75 64 69 6f | 22 2c 22 73 65 67 6d 65 |e "audio|","segme|
|00004a90| 6e 74 53 74 61 72 74 22 | 2c 74 68 65 53 74 61 72 |ntStart"|,theStar|
|00004aa0| 74 0d 73 65 74 51 54 4d | 6f 76 69 65 20 22 61 75 |t.setQTM|ovie "au|
|00004ab0| 64 69 6f 22 2c 22 73 65 | 67 6d 65 6e 74 45 6e 64 |dio","se|gmentEnd|
|00004ac0| 22 2c 74 68 65 45 6e 64 | 0d 72 65 74 75 72 6e 20 |",theEnd|.return |
|00004ad0| 22 74 72 75 65 22 0d 65 | 6e 64 20 6c 6f 61 64 41 |"true".e|nd loadA|
|00004ae0| 75 64 69 6f 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 6c |udio..fu|nction l|
|00004af0| 6f 61 64 47 65 6e 41 75 | 64 69 6f 20 73 6f 75 72 |oadGenAu|dio sour|
|00004b00| 63 65 4c 69 6e 65 20 2d | 2d 20 42 6f 6f 6c 65 61 |ceLine -|- Boolea|
|00004b10| 6e 0d 67 6c 6f 62 61 6c | 20 67 52 49 54 41 4d 6f |n.global| gRITAMo|
|00004b20| 76 69 65 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |vie.if t|here is |
|00004b30| 6e 6f 74 20 61 20 77 69 | 6e 64 6f 77 20 69 64 20 |not a wi|ndow id |
|00004b40| 67 52 49 54 41 4d 6f 76 | 69 65 20 74 68 65 6e 0d |gRITAMov|ie then.|
|00004b50| 6f 70 65 6e 51 54 4d 6f | 76 69 65 20 22 44 69 73 |openQTMo|vie "Dis|
|00004b60| 70 61 74 63 68 2e 41 75 | 64 69 6f 22 2c 22 52 49 |patch.Au|dio","RI|
|00004b70| 54 41 22 2c 22 30 2c 30 | 2c 30 2c 30 22 0d 65 6e |TA","0,0|,0,0".en|
|00004b80| 64 20 69 66 0d 70 75 74 | 20 6c 69 6e 65 20 73 6f |d if.put| line so|
|00004b90| 75 72 63 65 4c 69 6e 65 | 20 6f 66 20 63 64 20 66 |urceLine| of cd f|
|00004ba0| 6c 64 20 49 44 20 33 32 | 20 6f 66 20 63 64 20 69 |ld ID 32| of cd i|
|00004bb0| 64 20 39 33 32 39 20 69 | 6e 74 6f 20 74 68 65 53 |d 9329 i|nto theS|
|00004bc0| 74 61 72 74 0d 70 75 74 | 20 6c 69 6e 65 20 73 6f |tart.put| line so|
|00004bd0| 75 72 63 65 4c 69 6e 65 | 20 6f 66 20 63 64 20 66 |urceLine| of cd f|
|00004be0| 6c 64 20 49 44 20 33 33 | 20 6f 66 20 63 64 20 69 |ld ID 33| of cd i|
|00004bf0| 64 20 39 33 32 39 20 69 | 6e 74 6f 20 74 68 65 45 |d 9329 i|nto theE|
|00004c00| 6e 64 0d 69 66 20 67 65 | 74 4d 6f 76 69 65 49 44 |nd.if ge|tMovieID|
|00004c10| 28 22 52 49 54 41 22 29 | 3d 22 30 22 20 74 68 65 |("RITA")|="0" the|
|00004c20| 6e 20 72 65 74 75 72 6e | 20 22 66 61 6c 73 65 22 |n return| "false"|
|00004c30| 0d 69 66 20 63 68 65 63 | 6b 50 61 72 61 6d 28 74 |.if chec|kParam(t|
|00004c40| 68 65 53 74 61 72 74 29 | 3d 22 66 61 6c 73 65 22 |heStart)|="false"|
|00004c50| 20 74 68 65 6e 20 72 65 | 74 75 72 6e 20 22 66 61 | then re|turn "fa|
|00004c60| 6c 73 65 22 0d 69 66 20 | 63 68 65 63 6b 50 61 72 |lse".if |checkPar|
|00004c70| 61 6d 28 74 68 65 45 6e | 64 29 3d 22 66 61 6c 73 |am(theEn|d)="fals|
|00004c80| 65 22 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 22 |e" then |return "|
|00004c90| 66 61 6c 73 65 22 0d 70 | 75 74 20 6d 61 78 28 74 |false".p|ut max(t|
|00004ca0| 68 65 53 74 61 72 74 2d | 35 30 30 2c 30 29 20 69 |heStart-|500,0) i|
|00004cb0| 6e 74 6f 20 74 68 65 53 | 74 61 72 74 0d 73 65 74 |nto theS|tart.set|
|00004cc0| 51 54 4d 6f 76 69 65 20 | 22 52 49 54 41 22 2c 22 |QTMovie |"RITA","|
|00004cd0| 73 65 67 6d 65 6e 74 53 | 74 61 72 74 22 2c 74 68 |segmentS|tart",th|
|00004ce0| 65 53 74 61 72 74 0d 73 | 65 74 51 54 4d 6f 76 69 |eStart.s|etQTMovi|
|00004cf0| 65 20 22 52 49 54 41 22 | 2c 22 73 65 67 6d 65 6e |e "RITA"|,"segmen|
|00004d00| 74 45 6e 64 22 2c 74 68 | 65 45 6e 64 0d 72 65 74 |tEnd",th|eEnd.ret|
|00004d10| 75 72 6e 20 22 74 72 75 | 65 22 0d 65 6e 64 20 6c |urn "tru|e".end l|
|00004d20| 6f 61 64 47 65 6e 41 75 | 64 69 6f 0d 0d 66 75 6e |oadGenAu|dio..fun|
|00004d30| 63 74 69 6f 6e 20 63 68 | 65 63 6b 50 61 72 61 6d |ction ch|eckParam|
|00004d40| 20 4b 0d 69 66 20 4b 20 | 3d 20 22 22 20 6f 72 20 | K.if K |= "" or |
|00004d50| 4b 20 69 73 20 6e 6f 74 | 20 61 6e 20 69 6e 74 65 |K is not| an inte|
|00004d60| 67 65 72 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |ger then| return |
|00004d70| 22 66 61 6c 73 65 22 0d | 69 66 20 4b 20 3c 20 30 |"false".|if K < 0|
|00004d80| 20 74 68 65 6e 0d 72 65 | 74 75 72 6e 20 22 66 61 | then.re|turn "fa|
|00004d90| 6c 73 65 22 0d 65 6c 73 | 65 0d 72 65 74 75 72 6e |lse".els|e.return|
|00004da0| 20 22 74 72 75 65 22 0d | 65 6e 64 20 69 66 0d 65 | "true".|end if.e|
|00004db0| 6e 64 20 63 68 65 63 6b | 50 61 72 61 6d 0d 0d 66 |nd check|Param..f|
|00004dc0| 75 6e 63 74 69 6f 6e 20 | 67 65 74 52 65 74 75 72 |unction |getRetur|
|00004dd0| 6e 20 63 61 72 64 49 44 | 20 2d 2d 20 6b 65 65 70 |n cardID| -- keep|
|00004de0| 73 20 74 72 61 63 6b 20 | 6f 66 20 72 65 63 65 6e |s track |of recen|
|00004df0| 74 20 63 61 72 64 0d 67 | 6c 6f 62 61 6c 20 67 52 |t card.g|lobal gR|
|00004e00| 65 74 75 72 6e 43 44 20 | 2d 2d 20 73 74 61 74 69 |eturnCD |-- stati|
|00004e10| 63 0d 69 66 20 74 68 65 | 50 6c 61 6e 65 74 20 3d |c.if the|Planet =|
|00004e20| 20 22 63 6c 65 61 6e 75 | 70 22 20 74 68 65 6e 0d | "cleanu|p" then.|
|00004e30| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 67 52 65 74 |put "" i|nto gRet|
|00004e40| 75 72 6e 43 44 0d 65 6c | 73 65 20 69 66 20 74 68 |urnCD.el|se if th|
|00004e50| 65 72 65 20 69 73 20 61 | 20 63 61 72 64 20 69 64 |ere is a| card id|
|00004e60| 20 63 61 72 64 49 44 20 | 74 68 65 6e 20 2d 2d 20 | cardID |then -- |
|00004e70| 63 68 65 63 6b 20 74 68 | 61 74 20 49 44 20 69 73 |check th|at ID is|
|00004e80| 20 67 6f 6f 64 0d 70 75 | 74 20 63 61 72 64 49 44 | good.pu|t cardID|
|00004e90| 20 69 6e 74 6f 20 67 52 | 65 74 75 72 6e 43 44 0d | into gR|eturnCD.|
|00004ea0| 65 6e 64 20 69 66 0d 72 | 65 74 75 72 6e 20 67 52 |end if.r|eturn gR|
|00004eb0| 65 74 75 72 6e 43 44 0d | 65 6e 64 20 67 65 74 52 |eturnCD.|end getR|
|00004ec0| 65 74 75 72 6e 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |eturn..f|unction |
|00004ed0| 77 68 69 63 68 47 61 6d | 65 20 74 68 65 50 61 72 |whichGam|e thePar|
|00004ee0| 61 6d 0d 67 6c 6f 62 61 | 6c 20 74 68 65 47 61 6d |am.globa|l theGam|
|00004ef0| 65 0d 69 66 20 74 68 65 | 50 61 72 61 6d 20 3c 3e |e.if the|Param <>|
|00004f00| 20 22 22 20 74 68 65 6e | 20 70 75 74 20 74 68 65 | "" then| put the|
|00004f10| 50 61 72 61 6d 20 69 6e | 74 6f 20 74 68 65 47 61 |Param in|to theGa|
|00004f20| 6d 65 0d 72 65 74 75 72 | 6e 20 74 68 65 47 61 6d |me.retur|n theGam|
|00004f30| 65 0d 65 6e 64 20 77 68 | 69 63 68 47 61 6d 65 0d |e.end wh|ichGame.|
|00004f40| 0d 66 75 6e 63 74 69 6f | 6e 20 67 65 74 43 75 72 |.functio|n getCur|
|00004f50| 72 65 6e 74 4d 69 73 73 | 69 6f 6e 20 74 68 65 4d |rentMiss|ion theM|
|00004f60| 69 73 73 69 6f 6e 0d 2d | 2d 20 72 65 74 75 72 6e |ission.-|- return|
|00004f70| 73 20 6d 69 73 73 69 6f | 6e 20 69 64 0d 67 6c 6f |s missio|n id.glo|
|00004f80| 62 61 6c 20 67 42 47 43 | 75 72 72 65 6e 74 4d 69 |bal gBGC|urrentMi|
|00004f90| 73 73 69 6f 6e 20 2d 2d | 20 73 74 61 74 69 63 20 |ssion --| static |
|00004fa0| 76 61 72 69 61 62 6c 65 | 2c 20 6b 6e 6f 77 6e 20 |variable|, known |
|00004fb0| 6f 6e 6c 79 20 68 65 72 | 65 0d 69 66 20 74 68 65 |only her|e.if the|
|00004fc0| 4d 69 73 73 69 6f 6e 3d | 22 63 6c 65 61 6e 75 70 |Mission=|"cleanup|
|00004fd0| 22 20 74 68 65 6e 0d 70 | 75 74 20 22 22 20 69 6e |" then.p|ut "" in|
|00004fe0| 74 6f 20 67 42 47 43 75 | 72 72 65 6e 74 4d 69 73 |to gBGCu|rrentMis|
|00004ff0| 73 69 6f 6e 0d 65 6c 73 | 65 20 69 66 20 74 68 65 |sion.els|e if the|
|00005000| 4d 69 73 73 69 6f 6e 20 | 69 73 20 6e 6f 74 20 65 |Mission |is not e|
|00005010| 6d 70 74 79 20 74 68 65 | 6e 0d 70 75 74 20 74 68 |mpty the|n.put th|
|00005020| 65 4d 69 73 73 69 6f 6e | 20 69 6e 74 6f 20 67 42 |eMission| into gB|
|00005030| 47 43 75 72 72 65 6e 74 | 4d 69 73 73 69 6f 6e 0d |GCurrent|Mission.|
|00005040| 70 75 74 20 67 65 74 50 | 72 6f 73 70 65 63 74 4d |put getP|rospectM|
|00005050| 69 73 73 69 6f 6e 28 22 | 63 6c 65 61 6e 75 70 22 |ission("|cleanup"|
|00005060| 29 20 69 6e 74 6f 20 6e | 6f 74 68 69 6e 67 0d 65 |) into n|othing.e|
|00005070| 6e 64 20 69 66 0d 72 65 | 74 75 72 6e 20 67 42 47 |nd if.re|turn gBG|
|00005080| 43 75 72 72 65 6e 74 4d | 69 73 73 69 6f 6e 0d 65 |CurrentM|ission.e|
|00005090| 6e 64 20 67 65 74 43 75 | 72 72 65 6e 74 4d 69 73 |nd getCu|rrentMis|
|000050a0| 73 69 6f 6e 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 67 |sion..fu|nction g|
|000050b0| 65 74 50 72 6f 73 70 65 | 63 74 4d 69 73 73 69 6f |etProspe|ctMissio|
|000050c0| 6e 20 74 68 65 4d 69 73 | 73 69 6f 6e 0d 67 6c 6f |n theMis|sion.glo|
|000050d0| 62 61 6c 20 67 42 47 50 | 72 6f 73 70 65 63 74 4d |bal gBGP|rospectM|
|000050e0| 69 73 73 69 6f 6e 20 2d | 2d 20 73 74 61 74 69 63 |ission -|- static|
|000050f0| 20 76 61 72 69 61 62 6c | 65 2c 20 6b 6e 6f 77 6e | variabl|e, known|
|00005100| 20 6f 6e 6c 79 20 68 65 | 72 65 0d 69 66 20 74 68 | only he|re.if th|
|00005110| 65 4d 69 73 73 69 6f 6e | 3d 22 63 6c 65 61 6e 75 |eMission|="cleanu|
|00005120| 70 22 20 74 68 65 6e 0d | 70 75 74 20 22 22 20 69 |p" then.|put "" i|
|00005130| 6e 74 6f 20 67 42 47 50 | 72 6f 73 70 65 63 74 4d |nto gBGP|rospectM|
|00005140| 69 73 73 69 6f 6e 0d 65 | 6c 73 65 20 69 66 20 74 |ission.e|lse if t|
|00005150| 68 65 4d 69 73 73 69 6f | 6e 20 69 73 20 6e 6f 74 |heMissio|n is not|
|00005160| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 70 75 74 20 | empty t|hen.put |
|00005170| 74 68 65 4d 69 73 73 69 | 6f 6e 20 69 6e 74 6f 20 |theMissi|on into |
|00005180| 67 42 47 50 72 6f 73 70 | 65 63 74 4d 69 73 73 69 |gBGProsp|ectMissi|
|00005190| 6f 6e 0d 65 6e 64 20 69 | 66 0d 72 65 74 75 72 6e |on.end i|f.return|
|000051a0| 20 67 42 47 50 72 6f 73 | 70 65 63 74 4d 69 73 73 | gBGPros|pectMiss|
|000051b0| 69 6f 6e 0d 65 6e 64 20 | 67 65 74 50 72 6f 73 70 |ion.end |getProsp|
|000051c0| 65 63 74 4d 69 73 73 69 | 6f 6e 0d 0d 66 75 6e 63 |ectMissi|on..func|
|000051d0| 74 69 6f 6e 20 67 65 74 | 44 69 73 74 61 6e 63 65 |tion get|Distance|
|000051e0| 20 63 75 72 72 65 6e 74 | 50 6c 61 6e 65 74 2c 20 | current|Planet, |
|000051f0| 64 65 73 74 50 6c 61 6e | 65 74 0d 2d 2d 20 72 65 |destPlan|et.-- re|
|00005200| 74 75 72 6e 73 20 6d 69 | 6c 65 73 20 69 6e 20 6d |turns mi|les in m|
|00005210| 69 6c 6c 69 6f 6e 73 2c | 20 6f 72 69 67 69 6e 61 |illions,| origina|
|00005220| 6c 20 64 61 74 61 20 69 | 73 20 69 6e 20 41 55 0d |l data i|s in AU.|
|00005230| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 63 64 |if there| is a cd|
|00005240| 20 63 75 72 72 65 6e 74 | 50 6c 61 6e 65 74 20 6f | current|Planet o|
|00005250| 66 20 62 67 20 22 50 6c | 61 6e 65 74 61 72 79 5f |f bg "Pl|anetary_|
|00005260| 44 61 74 61 22 20 74 68 | 65 6e 0d 70 75 74 20 62 |Data" th|en.put b|
|00005270| 67 20 66 6c 64 20 22 6d | 65 61 6e 5f 64 69 73 74 |g fld "m|ean_dist|
|00005280| 61 6e 63 65 22 20 6f 66 | 20 63 64 20 63 75 72 72 |ance" of| cd curr|
|00005290| 65 6e 74 50 6c 61 6e 65 | 74 c2 0d 6f 66 20 62 67 |entPlane|t..of bg|
|000052a0| 20 22 50 6c 61 6e 65 74 | 61 72 79 5f 44 61 74 61 | "Planet|ary_Data|
|000052b0| 22 20 69 6e 74 6f 20 63 | 75 72 72 65 6e 74 41 73 |" into c|urrentAs|
|000052c0| 74 55 6e 69 74 73 0d 65 | 6e 64 20 69 66 0d 69 66 |tUnits.e|nd if.if|
|000052d0| 20 74 68 65 72 65 20 69 | 73 20 61 20 63 64 20 64 | there i|s a cd d|
|000052e0| 65 73 74 50 6c 61 6e 65 | 74 20 6f 66 20 62 67 20 |estPlane|t of bg |
|000052f0| 22 50 6c 61 6e 65 74 61 | 72 79 5f 44 61 74 61 22 |"Planeta|ry_Data"|
|00005300| 20 74 68 65 6e 0d 70 75 | 74 20 62 67 20 66 6c 64 | then.pu|t bg fld|
|00005310| 20 22 6d 65 61 6e 5f 64 | 69 73 74 61 6e 63 65 22 | "mean_d|istance"|
|00005320| 20 6f 66 20 63 64 20 64 | 65 73 74 50 6c 61 6e 65 | of cd d|estPlane|
|00005330| 74 c2 0d 6f 66 20 62 67 | 20 22 50 6c 61 6e 65 74 |t..of bg| "Planet|
|00005340| 61 72 79 5f 44 61 74 61 | 22 20 69 6e 74 6f 20 64 |ary_Data|" into d|
|00005350| 65 73 74 41 73 74 55 6e | 69 74 73 0d 65 6e 64 20 |estAstUn|its.end |
|00005360| 69 66 0d 70 75 74 20 61 | 62 73 28 64 65 73 74 41 |if.put a|bs(destA|
|00005370| 73 74 55 6e 69 74 73 20 | 2d 20 63 75 72 72 65 6e |stUnits |- curren|
|00005380| 74 41 73 74 55 6e 69 74 | 73 29 20 69 6e 74 6f 20 |tAstUnit|s) into |
|00005390| 74 72 61 76 65 6c 44 69 | 73 74 61 6e 63 65 0d 6d |travelDi|stance.m|
|000053a0| 75 6c 74 69 70 6c 79 20 | 74 72 61 76 65 6c 44 69 |ultiply |travelDi|
|000053b0| 73 74 61 6e 63 65 20 62 | 79 20 39 33 2e 38 20 2d |stance b|y 93.8 -|
|000053c0| 2d 20 63 6f 6e 76 65 72 | 74 20 74 6f 20 6d 69 6c |- conver|t to mil|
|000053d0| 6c 69 6f 6e 20 6d 69 6c | 65 73 0d 72 65 74 75 72 |lion mil|es.retur|
|000053e0| 6e 20 74 72 61 76 65 6c | 44 69 73 74 61 6e 63 65 |n travel|Distance|
|000053f0| 0d 65 6e 64 20 67 65 74 | 44 69 73 74 61 6e 63 65 |.end get|Distance|
|00005400| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 67 65 74 43 75 |..functi|on getCu|
|00005410| 72 72 65 6e 74 50 6c 61 | 6e 65 74 20 74 68 65 50 |rrentPla|net theP|
|00005420| 6c 61 6e 65 74 0d 67 6c | 6f 62 61 6c 20 67 43 75 |lanet.gl|obal gCu|
|00005430| 72 72 65 6e 74 50 6c 61 | 6e 65 74 20 2d 2d 20 73 |rrentPla|net -- s|
|00005440| 74 61 74 69 63 0d 69 66 | 20 74 68 65 50 6c 61 6e |tatic.if| thePlan|
|00005450| 65 74 3d 22 63 6c 65 61 | 6e 75 70 22 20 74 68 65 |et="clea|nup" the|
|00005460| 6e 0d 70 75 74 20 22 22 | 20 69 6e 74 6f 20 67 43 |n.put ""| into gC|
|00005470| 75 72 72 65 6e 74 50 6c | 61 6e 65 74 0d 65 6c 73 |urrentPl|anet.els|
|00005480| 65 20 69 66 20 63 68 65 | 63 6b 50 6c 61 6e 65 74 |e if che|ckPlanet|
|00005490| 28 74 68 65 50 6c 61 6e | 65 74 29 20 74 68 65 6e |(thePlan|et) then|
|000054a0| 0d 70 75 74 20 74 68 65 | 50 6c 61 6e 65 74 20 69 |.put the|Planet i|
|000054b0| 6e 74 6f 20 67 43 75 72 | 72 65 6e 74 50 6c 61 6e |nto gCur|rentPlan|
|000054c0| 65 74 0d 65 6e 64 20 69 | 66 0d 72 65 74 75 72 6e |et.end i|f.return|
|000054d0| 20 67 43 75 72 72 65 6e | 74 50 6c 61 6e 65 74 0d | gCurren|tPlanet.|
|000054e0| 65 6e 64 20 67 65 74 43 | 75 72 72 65 6e 74 50 6c |end getC|urrentPl|
|000054f0| 61 6e 65 74 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 67 |anet..fu|nction g|
|00005500| 65 74 50 6c 61 6e 65 74 | 53 65 6c 65 63 74 20 74 |etPlanet|Select t|
|00005510| 68 65 50 6c 61 6e 65 74 | 0d 67 6c 6f 62 61 6c 20 |hePlanet|.global |
|00005520| 67 42 47 50 6c 61 6e 65 | 74 53 65 6c 65 63 74 20 |gBGPlane|tSelect |
|00005530| 2d 2d 20 73 74 61 74 69 | 63 0d 69 66 20 74 68 65 |-- stati|c.if the|
|00005540| 50 6c 61 6e 65 74 3d 22 | 63 6c 65 61 6e 75 70 22 |Planet="|cleanup"|
|00005550| 20 74 68 65 6e 0d 70 75 | 74 20 22 22 20 69 6e 74 | then.pu|t "" int|
|00005560| 6f 20 67 42 47 50 6c 61 | 6e 65 74 53 65 6c 65 63 |o gBGPla|netSelec|
|00005570| 74 0d 65 6c 73 65 20 69 | 66 20 63 68 65 63 6b 50 |t.else i|f checkP|
|00005580| 6c 61 6e 65 74 28 74 68 | 65 50 6c 61 6e 65 74 29 |lanet(th|ePlanet)|
|00005590| 20 74 68 65 6e 0d 70 75 | 74 20 74 68 65 50 6c 61 | then.pu|t thePla|
|000055a0| 6e 65 74 20 69 6e 74 6f | 20 67 42 47 50 6c 61 6e |net into| gBGPlan|
|000055b0| 65 74 53 65 6c 65 63 74 | 0d 65 6e 64 20 69 66 0d |etSelect|.end if.|
|000055c0| 72 65 74 75 72 6e 20 67 | 42 47 50 6c 61 6e 65 74 |return g|BGPlanet|
|000055d0| 53 65 6c 65 63 74 0d 65 | 6e 64 20 67 65 74 50 6c |Select.e|nd getPl|
|000055e0| 61 6e 65 74 53 65 6c 65 | 63 74 0d 0d 66 75 6e 63 |anetSele|ct..func|
|000055f0| 74 69 6f 6e 20 67 65 74 | 44 69 72 65 63 74 69 6f |tion get|Directio|
|00005600| 6e 20 74 68 65 50 61 72 | 61 6d 20 2d 2d 20 66 61 |n thePar|am -- fa|
|00005610| 63 69 6e 67 20 53 75 6e | 3f 0d 67 6c 6f 62 61 6c |cing Sun|?.global|
|00005620| 20 67 42 47 44 69 72 65 | 63 74 69 6f 6e 20 2d 2d | gBGDire|ction --|
|00005630| 20 73 74 61 74 69 63 0d | 69 66 20 74 68 65 50 61 | static.|if thePa|
|00005640| 72 61 6d 3d 22 63 6c 65 | 61 6e 75 70 22 20 74 68 |ram="cle|anup" th|
|00005650| 65 6e 0d 70 75 74 20 22 | 22 20 69 6e 74 6f 20 67 |en.put "|" into g|
|00005660| 42 47 44 69 72 65 63 74 | 69 6f 6e 0d 65 6c 73 65 |BGDirect|ion.else|
|00005670| 20 69 66 20 74 68 65 50 | 61 72 61 6d 20 69 73 20 | if theP|aram is |
|00005680| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 70 |not empt|y then.p|
|00005690| 75 74 20 74 68 65 50 61 | 72 61 6d 20 69 6e 74 6f |ut thePa|ram into|
|000056a0| 20 67 42 47 44 69 72 65 | 63 74 69 6f 6e 0d 65 6e | gBGDire|ction.en|
|000056b0| 64 20 69 66 0d 72 65 74 | 75 72 6e 20 67 42 47 44 |d if.ret|urn gBGD|
|000056c0| 69 72 65 63 74 69 6f 6e | 0d 65 6e 64 20 67 65 74 |irection|.end get|
|000056d0| 44 69 72 65 63 74 69 6f | 6e 0d 0d 66 75 6e 63 74 |Directio|n..funct|
|000056e0| 69 6f 6e 20 63 68 65 63 | 6b 50 6c 61 6e 65 74 20 |ion chec|kPlanet |
|000056f0| 74 68 65 50 6c 61 6e 65 | 74 0d 69 66 20 74 68 65 |thePlane|t.if the|
|00005700| 50 6c 61 6e 65 74 20 69 | 73 20 69 6e 20 22 53 55 |Planet i|s in "SU|
|00005710| 4e 2c 4d 45 52 43 55 52 | 59 2c 56 45 4e 55 53 2c |N,MERCUR|Y,VENUS,|
|00005720| 45 41 52 54 48 2c 4d 41 | 52 53 2c 4a 55 50 49 54 |EARTH,MA|RS,JUPIT|
|00005730| 45 52 2c 53 41 54 55 52 | 4e 2c 55 52 41 4e 55 53 |ER,SATUR|N,URANUS|
|00005740| 2c 4e 45 50 54 55 4e 45 | 2c 50 4c 55 54 4f 22 20 |,NEPTUNE|,PLUTO" |
|00005750| 74 68 65 6e 0d 72 65 74 | 75 72 6e 20 22 74 72 75 |then.ret|urn "tru|
|00005760| 65 22 0d 65 6c 73 65 0d | 72 65 74 75 72 6e 20 22 |e".else.|return "|
|00005770| 66 61 6c 73 65 22 0d 65 | 6e 64 20 69 66 0d 65 6e |false".e|nd if.en|
|00005780| 64 20 63 68 65 63 6b 50 | 6c 61 6e 65 74 0d 0d 6f |d checkP|lanet..o|
|00005790| 6e 20 50 42 5f 6d 6f 75 | 73 65 44 6f 77 6e 20 74 |n PB_mou|seDown t|
|000057a0| 68 65 44 65 73 74 69 6e | 61 74 69 6f 6e 20 2d 2d |heDestin|ation --|
|000057b0| 20 70 6c 61 6e 65 74 20 | 62 75 74 74 6f 6e 73 0d | planet |buttons.|
|000057c0| 67 6c 6f 62 61 6c 20 67 | 50 42 5f 50 4f 53 2c 20 |global g|PB_POS, |
|000057d0| 67 50 42 5f 49 44 53 2c | 20 67 50 42 5f 52 65 63 |gPB_IDS,| gPB_Rec|
|000057e0| 74 73 0d 70 75 74 20 74 | 68 65 20 73 68 6f 72 74 |ts.put t|he short|
|000057f0| 20 49 44 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 | ID of t|he targe|
|00005800| 74 20 69 6e 74 6f 20 74 | 61 72 67 65 74 49 44 0d |t into t|argetID.|
|00005810| 73 65 74 20 74 68 65 20 | 68 69 6c 69 74 65 20 6f |set the |hilite o|
|00005820| 66 20 62 67 20 62 74 6e | 20 69 64 20 74 61 72 67 |f bg btn| id targ|
|00005830| 65 74 49 44 20 74 6f 20 | 66 61 6c 73 65 0d 70 75 |etID to |false.pu|
|00005840| 74 20 61 72 65 50 6c 61 | 6e 65 74 73 49 6e 4f 72 |t arePla|netsInOr|
|00005850| 64 65 72 28 29 20 69 6e | 74 6f 20 73 61 76 65 53 |der() in|to saveS|
|00005860| 74 61 74 65 0d 70 75 74 | 20 74 68 65 20 63 6c 69 |tate.put| the cli|
|00005870| 63 6b 4c 6f 63 20 69 6e | 74 6f 20 73 61 76 65 4d |ckLoc in|to saveM|
|00005880| 6f 75 73 65 6c 6f 63 20 | 2d 2d 20 6d 6f 75 73 65 |ouseloc |-- mouse|
|00005890| 44 6f 77 6e 0d 70 75 74 | 20 74 68 65 20 6c 6f 63 |Down.put| the loc|
|000058a0| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 69 | of the |target i|
|000058b0| 6e 74 6f 20 73 61 76 65 | 54 61 72 67 65 74 4c 6f |nto save|TargetLo|
|000058c0| 63 61 74 69 6f 6e 0d 70 | 75 74 20 6c 69 6e 65 20 |cation.p|ut line |
|000058d0| 74 61 72 67 65 74 49 44 | 20 6f 66 20 67 50 42 5f |targetID| of gPB_|
|000058e0| 49 44 53 20 69 6e 74 6f | 20 63 75 72 72 65 6e 74 |IDS into| current|
|000058f0| 50 4f 53 0d 70 75 74 20 | 6c 69 6e 65 20 31 31 20 |POS.put |line 11 |
|00005900| 6f 66 20 67 50 42 5f 52 | 65 63 74 73 20 69 6e 74 |of gPB_R|ects int|
|00005910| 6f 20 63 6f 6e 73 74 72 | 61 69 6e 74 52 65 63 74 |o constr|aintRect|
|00005920| 0d 69 66 20 6c 69 6e 65 | 20 31 31 20 6f 66 20 67 |.if line| 11 of g|
|00005930| 50 42 5f 50 4f 53 20 69 | 73 20 6e 6f 74 20 65 6d |PB_POS i|s not em|
|00005940| 70 74 79 20 61 6e 64 20 | 6c 69 6e 65 20 31 31 20 |pty and |line 11 |
|00005950| 6f 66 20 67 50 42 5f 50 | 4f 53 20 3c 3e 20 74 61 |of gPB_P|OS <> ta|
|00005960| 72 67 65 74 49 44 20 74 | 68 65 6e 0d 73 65 74 20 |rgetID t|hen.set |
|00005970| 74 68 65 20 68 69 6c 69 | 74 65 20 6f 66 20 62 67 |the hili|te of bg|
|00005980| 20 62 74 6e 20 69 64 20 | 28 6c 69 6e 65 20 31 31 | btn id |(line 11|
|00005990| 20 6f 66 20 67 50 42 5f | 50 4f 53 29 20 74 6f 20 | of gPB_|POS) to |
|000059a0| 74 72 75 65 0d 65 6e 64 | 20 69 66 0d 70 75 74 20 |true.end| if.put |
|000059b0| 74 61 72 67 65 74 49 44 | 20 69 6e 74 6f 20 6c 69 |targetID| into li|
|000059c0| 6e 65 20 31 31 20 6f 66 | 20 67 50 42 5f 50 4f 53 |ne 11 of| gPB_POS|
|000059d0| 0d 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 74 68 |.repeat |while th|
|000059e0| 65 20 73 68 6f 72 74 20 | 69 64 20 6f 66 20 74 68 |e short |id of th|
|000059f0| 69 73 20 63 64 3d 22 31 | 30 38 36 32 22 20 2d 2d |is cd="1|0862" --|
|00005a00| 20 72 6f 6f 6b 69 65 0d | 69 66 20 74 68 65 20 6d | rookie.|if the m|
|00005a10| 6f 75 73 65 4c 6f 63 20 | 69 73 20 6e 6f 74 20 77 |ouseLoc |is not w|
|00005a20| 69 74 68 69 6e 20 63 6f | 6e 73 74 72 61 69 6e 74 |ithin co|nstraint|
|00005a30| 52 65 63 74 20 74 68 65 | 6e 0d 68 69 64 65 20 62 |Rect the|n.hide b|
|00005a40| 67 20 62 74 6e 20 74 61 | 72 67 65 74 49 44 0d 65 |g btn ta|rgetID.e|
|00005a50| 6c 73 65 0d 73 68 6f 77 | 20 62 67 20 62 74 6e 20 |lse.show| bg btn |
|00005a60| 74 61 72 67 65 74 49 44 | 0d 65 6e 64 20 69 66 0d |targetID|.end if.|
|00005a70| 70 75 74 20 6c 69 6e 65 | 20 74 61 72 67 65 74 49 |put line| targetI|
|00005a80| 44 20 6f 66 20 67 50 42 | 5f 49 44 53 20 69 6e 74 |D of gPB|_IDS int|
|00005a90| 6f 20 63 75 72 72 65 6e | 74 50 4f 53 0d 70 75 74 |o curren|tPOS.put|
|00005aa0| 20 6d 61 78 28 28 63 75 | 72 72 65 6e 74 50 6f 73 | max((cu|rrentPos|
|00005ab0| 20 2d 20 31 29 2c 31 29 | 20 69 6e 74 6f 20 75 70 | - 1),1)| into up|
|00005ac0| 70 65 72 50 6f 73 0d 70 | 75 74 20 6d 69 6e 28 28 |perPos.p|ut min((|
|00005ad0| 63 75 72 72 65 6e 74 50 | 6f 73 20 2b 20 31 29 2c |currentP|os + 1),|
|00005ae0| 31 30 29 20 69 6e 74 6f | 20 6c 6f 77 65 72 50 6f |10) into| lowerPo|
|00005af0| 73 0d 70 75 74 20 74 68 | 65 20 6d 6f 75 73 65 4c |s.put th|e mouseL|
|00005b00| 6f 63 20 69 6e 74 6f 20 | 6e 65 77 4d 6f 75 73 65 |oc into |newMouse|
|00005b10| 6c 6f 63 20 2d 2d 20 74 | 72 61 63 6b 20 6d 6f 75 |loc -- t|rack mou|
|00005b20| 73 65 2e 0d 70 75 74 20 | 74 68 65 20 6c 6f 63 20 |se..put |the loc |
|00005b30| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 69 6e |of the t|arget in|
|00005b40| 74 6f 20 74 65 6d 70 43 | 6f 6e 74 61 69 6e 65 72 |to tempC|ontainer|
|00005b50| 0d 61 64 64 20 28 69 74 | 65 6d 20 32 20 6f 66 20 |.add (it|em 2 of |
|00005b60| 6e 65 77 4d 6f 75 73 65 | 6c 6f 63 20 2d 20 69 74 |newMouse|loc - it|
|00005b70| 65 6d 20 32 20 6f 66 20 | 73 61 76 65 4d 6f 75 73 |em 2 of |saveMous|
|00005b80| 65 6c 6f 63 29 c2 0d 74 | 6f 20 69 74 65 6d 20 32 |eloc)..t|o item 2|
|00005b90| 20 6f 66 20 74 65 6d 70 | 43 6f 6e 74 61 69 6e 65 | of temp|Containe|
|00005ba0| 72 0d 73 65 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |r.set th|e loc of|
|00005bb0| 20 74 68 65 20 74 61 72 | 67 65 74 20 74 6f 20 74 | the tar|get to t|
|00005bc0| 65 6d 70 43 6f 6e 74 61 | 69 6e 65 72 20 2d 2d 20 |empConta|iner -- |
|00005bd0| 6d 6f 76 65 20 62 75 74 | 74 6f 6e 0d 70 75 74 20 |move but|ton.put |
|00005be0| 6e 65 77 4d 6f 75 73 65 | 6c 6f 63 20 69 6e 74 6f |newMouse|loc into|
|00005bf0| 20 73 61 76 65 4d 6f 75 | 73 65 6c 6f 63 0d 69 66 | saveMou|seloc.if|
|00005c00| 20 28 69 74 65 6d 20 32 | 20 6f 66 20 74 65 6d 70 | (item 2| of temp|
|00005c10| 43 6f 6e 74 61 69 6e 65 | 72 20 3c 20 69 74 65 6d |Containe|r < item|
|00005c20| 20 34 20 6f 66 20 6c 69 | 6e 65 20 75 70 70 65 72 | 4 of li|ne upper|
|00005c30| 50 6f 73 20 6f 66 20 67 | 50 42 5f 52 65 63 74 73 |Pos of g|PB_Rects|
|00005c40| 29 20 74 68 65 6e 0d 70 | 75 74 20 6c 69 6e 65 20 |) then.p|ut line |
|00005c50| 63 75 72 72 65 6e 74 50 | 6f 73 20 6f 66 20 67 50 |currentP|os of gP|
|00005c60| 42 5f 50 4f 53 20 69 6e | 74 6f 20 74 65 6d 70 0d |B_POS in|to temp.|
|00005c70| 70 75 74 20 6c 69 6e 65 | 20 75 70 70 65 72 50 6f |put line| upperPo|
|00005c80| 73 20 6f 66 20 67 50 42 | 5f 50 4f 53 20 69 6e 74 |s of gPB|_POS int|
|00005c90| 6f 20 6c 69 6e 65 20 63 | 75 72 72 65 6e 74 50 6f |o line c|urrentPo|
|00005ca0| 73 20 6f 66 20 67 50 42 | 5f 50 4f 53 0d 70 75 74 |s of gPB|_POS.put|
|00005cb0| 20 74 65 6d 70 20 69 6e | 74 6f 20 6c 69 6e 65 20 | temp in|to line |
|00005cc0| 75 70 70 65 72 50 6f 73 | 20 6f 66 20 67 50 42 5f |upperPos| of gPB_|
|00005cd0| 50 4f 53 0d 70 75 74 20 | 75 70 70 65 72 50 6f 73 |POS.put |upperPos|
|00005ce0| 20 69 6e 74 6f 20 6c 69 | 6e 65 20 28 6c 69 6e 65 | into li|ne (line|
|00005cf0| 20 75 70 70 65 72 50 6f | 73 20 6f 66 20 67 50 42 | upperPo|s of gPB|
|00005d00| 5f 50 4f 53 29 20 6f 66 | 20 67 50 42 5f 49 44 53 |_POS) of| gPB_IDS|
|00005d10| 0d 70 75 74 20 63 75 72 | 72 65 6e 74 50 6f 73 20 |.put cur|rentPos |
|00005d20| 69 6e 74 6f 20 6c 69 6e | 65 20 28 6c 69 6e 65 20 |into lin|e (line |
|00005d30| 63 75 72 72 65 6e 74 50 | 6f 73 20 6f 66 20 67 50 |currentP|os of gP|
|00005d40| 42 5f 50 4f 53 29 20 6f | 66 20 67 50 42 5f 49 44 |B_POS) o|f gPB_ID|
|00005d50| 53 0d 69 66 20 63 75 72 | 72 65 6e 74 50 6f 73 20 |S.if cur|rentPos |
|00005d60| 3c 3e 20 75 70 70 65 72 | 50 6f 73 20 74 68 65 6e |<> upper|Pos then|
|00005d70| 0d 73 65 74 20 74 68 65 | 20 72 65 63 74 20 6f 66 |.set the| rect of|
|00005d80| 20 62 67 20 62 74 6e 20 | 69 64 20 28 6c 69 6e 65 | bg btn |id (line|
|00005d90| 20 63 75 72 72 65 6e 74 | 50 6f 73 20 6f 66 20 67 | current|Pos of g|
|00005da0| 50 42 5f 50 4f 53 29 20 | 74 6f c2 0d 6c 69 6e 65 |PB_POS) |to..line|
|00005db0| 20 63 75 72 72 65 6e 74 | 50 6f 73 20 6f 66 20 67 | current|Pos of g|
|00005dc0| 50 42 5f 52 65 63 74 73 | 0d 65 6c 73 65 0d 69 66 |PB_Rects|.else.if|
|00005dd0| 20 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 75 70 | the mou|se is up|
|00005de0| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00005df0| 74 0d 65 6e 64 20 69 66 | 0d 65 6c 73 65 20 69 66 |t.end if|.else if|
|00005e00| 20 28 69 74 65 6d 20 32 | 20 6f 66 20 74 65 6d 70 | (item 2| of temp|
|00005e10| 43 6f 6e 74 61 69 6e 65 | 72 20 3e 20 69 74 65 6d |Containe|r > item|
|00005e20| 20 32 20 6f 66 20 6c 69 | 6e 65 20 6c 6f 77 65 72 | 2 of li|ne lower|
|00005e30| 50 6f 73 20 6f 66 20 67 | 50 42 5f 52 65 63 74 73 |Pos of g|PB_Rects|
|00005e40| 29 20 74 68 65 6e 0d 70 | 75 74 20 6c 69 6e 65 20 |) then.p|ut line |
|00005e50| 63 75 72 72 65 6e 74 50 | 6f 73 20 6f 66 20 67 50 |currentP|os of gP|
|00005e60| 42 5f 50 4f 53 20 69 6e | 74 6f 20 74 65 6d 70 0d |B_POS in|to temp.|
|00005e70| 70 75 74 20 6c 69 6e 65 | 20 6c 6f 77 65 72 50 6f |put line| lowerPo|
|00005e80| 73 20 6f 66 20 67 50 42 | 5f 50 4f 53 20 69 6e 74 |s of gPB|_POS int|
|00005e90| 6f 20 6c 69 6e 65 20 63 | 75 72 72 65 6e 74 50 6f |o line c|urrentPo|
|00005ea0| 73 20 6f 66 20 67 50 42 | 5f 50 4f 53 0d 70 75 74 |s of gPB|_POS.put|
|00005eb0| 20 74 65 6d 70 20 69 6e | 74 6f 20 6c 69 6e 65 20 | temp in|to line |
|00005ec0| 6c 6f 77 65 72 50 6f 73 | 20 6f 66 20 67 50 42 5f |lowerPos| of gPB_|
|00005ed0| 50 4f 53 0d 70 75 74 20 | 6c 6f 77 65 72 50 6f 73 |POS.put |lowerPos|
|00005ee0| 20 69 6e 74 6f 20 6c 69 | 6e 65 20 28 6c 69 6e 65 | into li|ne (line|
|00005ef0| 20 6c 6f 77 65 72 50 6f | 73 20 6f 66 20 67 50 42 | lowerPo|s of gPB|
|00005f00| 5f 50 4f 53 29 20 6f 66 | 20 67 50 42 5f 49 44 53 |_POS) of| gPB_IDS|
|00005f10| 0d 70 75 74 20 63 75 72 | 72 65 6e 74 50 6f 73 20 |.put cur|rentPos |
|00005f20| 69 6e 74 6f 20 6c 69 6e | 65 20 28 6c 69 6e 65 20 |into lin|e (line |
|00005f30| 63 75 72 72 65 6e 74 50 | 6f 73 20 6f 66 20 67 50 |currentP|os of gP|
|00005f40| 42 5f 50 4f 53 29 20 6f | 66 20 67 50 42 5f 49 44 |B_POS) o|f gPB_ID|
|00005f50| 53 0d 69 66 20 63 75 72 | 72 65 6e 74 50 6f 73 20 |S.if cur|rentPos |
|00005f60| 3c 3e 20 6c 6f 77 65 72 | 50 6f 73 20 74 68 65 6e |<> lower|Pos then|
|00005f70| 0d 73 65 74 20 74 68 65 | 20 72 65 63 74 20 6f 66 |.set the| rect of|
|00005f80| 20 62 67 20 62 74 6e 20 | 69 64 20 28 6c 69 6e 65 | bg btn |id (line|
|00005f90| 20 63 75 72 72 65 6e 74 | 50 6f 73 20 6f 66 20 67 | current|Pos of g|
|00005fa0| 50 42 5f 50 4f 53 29 20 | 74 6f c2 0d 6c 69 6e 65 |PB_POS) |to..line|
|00005fb0| 20 63 75 72 72 65 6e 74 | 50 6f 73 20 6f 66 20 67 | current|Pos of g|
|00005fc0| 50 42 5f 52 65 63 74 73 | 0d 65 6c 73 65 0d 69 66 |PB_Rects|.else.if|
|00005fd0| 20 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 75 70 | the mou|se is up|
|00005fe0| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00005ff0| 74 0d 65 6e 64 20 69 66 | 0d 65 6c 73 65 20 69 66 |t.end if|.else if|
|00006000| 20 74 68 65 20 6d 6f 75 | 73 65 20 69 73 20 75 70 | the mou|se is up|
|00006010| 20 74 68 65 6e 0d 65 78 | 69 74 20 72 65 70 65 61 | then.ex|it repea|
|00006020| 74 0d 65 6c 73 65 0d 6e | 65 78 74 20 72 65 70 65 |t.else.n|ext repe|
|00006030| 61 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |at.end i|f.end re|
|00006040| 70 65 61 74 20 2d 2d 20 | 6d 6f 75 73 65 55 70 0d |peat -- |mouseUp.|
|00006050| 73 68 6f 77 20 62 67 20 | 62 74 6e 20 74 61 72 67 |show bg |btn targ|
|00006060| 65 74 49 44 0d 73 65 74 | 20 74 68 65 20 72 65 63 |etID.set| the rec|
|00006070| 74 20 6f 66 20 62 67 20 | 62 74 6e 20 69 64 20 28 |t of bg |btn id (|
|00006080| 6c 69 6e 65 20 63 75 72 | 72 65 6e 74 50 6f 73 20 |line cur|rentPos |
|00006090| 6f 66 20 67 50 42 5f 50 | 4f 53 29 20 74 6f c2 0d |of gPB_P|OS) to..|
|000060a0| 6c 69 6e 65 20 63 75 72 | 72 65 6e 74 50 6f 73 20 |line cur|rentPos |
|000060b0| 6f 66 20 67 50 42 5f 52 | 65 63 74 73 0d 70 75 74 |of gPB_R|ects.put|
|000060c0| 20 61 72 65 50 6c 61 6e | 65 74 73 49 6e 4f 72 64 | arePlan|etsInOrd|
|000060d0| 65 72 28 29 20 69 6e 74 | 6f 20 6e 65 77 53 74 61 |er() int|o newSta|
|000060e0| 74 65 0d 69 66 20 6e 65 | 77 53 74 61 74 65 3d 31 |te.if ne|wState=1|
|000060f0| 30 20 61 6e 64 20 73 61 | 76 65 53 74 61 74 65 20 |0 and sa|veState |
|00006100| 3c 20 31 30 20 74 68 65 | 6e 0d 70 6c 61 79 20 22 |< 10 the|n.play "|
|00006110| 4d 61 67 69 63 42 65 6c | 6c 22 0d 77 61 69 74 20 |MagicBel|l".wait |
|00006120| 75 6e 74 69 6c 20 74 68 | 65 20 73 6f 75 6e 64 20 |until th|e sound |
|00006130| 69 73 20 64 6f 6e 65 0d | 65 6e 64 20 69 66 0d 69 |is done.|end if.i|
|00006140| 66 20 6e 65 77 53 74 61 | 74 65 3d 38 20 61 6e 64 |f newSta|te=8 and|
|00006150| 20 73 61 76 65 53 74 61 | 74 65 20 3c 3e 20 38 20 | saveSta|te <> 8 |
|00006160| 74 68 65 6e 0d 67 65 74 | 47 65 6e 49 6e 66 6f 72 |then.get|GenInfor|
|00006170| 6d 61 74 69 6f 6e 20 22 | 35 39 22 0d 65 6e 64 20 |mation "|59".end |
|00006180| 69 66 0d 65 6e 64 20 50 | 42 5f 6d 6f 75 73 65 44 |if.end P|B_mouseD|
|00006190| 6f 77 6e 0d 0d 66 75 6e | 63 74 69 6f 6e 20 61 72 |own..fun|ction ar|
|000061a0| 65 50 6c 61 6e 65 74 73 | 49 6e 4f 72 64 65 72 20 |ePlanets|InOrder |
|000061b0| 2d 2d 20 63 68 65 63 6b | 20 69 66 20 70 6c 61 6e |-- check| if plan|
|000061c0| 65 74 73 20 61 72 65 20 | 69 6e 20 6f 72 64 65 72 |ets are |in order|
|000061d0| 0d 67 6c 6f 62 61 6c 20 | 67 50 42 5f 50 4f 53 0d |.global |gPB_POS.|
|000061e0| 70 75 74 20 30 20 69 6e | 74 6f 20 6b 65 65 70 54 |put 0 in|to keepT|
|000061f0| 72 61 63 6b 0d 72 65 70 | 65 61 74 20 77 69 74 68 |rack.rep|eat with|
|00006200| 20 6b 3d 31 20 74 6f 20 | 31 30 0d 69 66 20 28 28 | k=1 to |10.if ((|
|00006210| 6c 69 6e 65 20 6b 20 6f | 66 20 67 50 42 5f 50 4f |line k o|f gPB_PO|
|00006220| 53 29 20 3c 3e 20 6b 29 | 20 74 68 65 6e 20 65 78 |S) <> k)| then ex|
|00006230| 69 74 20 72 65 70 65 61 | 74 0d 61 64 64 20 31 20 |it repea|t.add 1 |
|00006240| 74 6f 20 6b 65 65 70 54 | 72 61 63 6b 0d 65 6e 64 |to keepT|rack.end|
|00006250| 20 72 65 70 65 61 74 0d | 72 65 74 75 72 6e 20 6b | repeat.|return k|
|00006260| 65 65 70 54 72 61 63 6b | 0d 65 6e 64 20 61 72 65 |eepTrack|.end are|
|00006270| 50 6c 61 6e 65 74 73 49 | 6e 4f 72 64 65 72 0d 0d |PlanetsI|nOrder..|
|00006280| 6f 6e 20 61 64 6a 75 73 | 74 53 6c 69 64 65 72 20 |on adjus|tSlider |
|00006290| 73 6c 69 64 65 72 4d 61 | 78 2c 73 6c 69 64 65 72 |sliderMa|x,slider|
|000062a0| 4d 69 6e 2c 73 6c 69 64 | 65 72 50 6f 73 2c 63 6c |Min,slid|erPos,cl|
|000062b0| 69 63 6b 4d 6f 64 65 0d | 73 65 74 20 74 68 65 20 |ickMode.|set the |
|000062c0| 69 63 6f 6e 20 6f 66 20 | 62 67 20 62 74 6e 20 22 |icon of |bg btn "|
|000062d0| 41 75 64 69 6f 5f 4c 65 | 76 65 6c 22 20 74 6f 20 |Audio_Le|vel" to |
|000062e0| 31 33 31 0d 70 75 74 20 | 28 73 6c 69 64 65 72 4d |131.put |(sliderM|
|000062f0| 61 78 20 2d 20 73 6c 69 | 64 65 72 4d 69 6e 29 20 |ax - sli|derMin) |
|00006300| 64 69 76 20 37 20 69 6e | 74 6f 20 73 6c 69 64 65 |div 7 in|to slide|
|00006310| 72 53 63 61 6c 65 0d 69 | 66 20 63 6c 69 63 6b 4d |rScale.i|f clickM|
|00006320| 6f 64 65 20 74 68 65 6e | 0d 70 75 74 20 28 69 74 |ode then|.put (it|
|00006330| 65 6d 20 31 20 6f 66 20 | 6c 6f 63 20 6f 66 20 62 |em 1 of |loc of b|
|00006340| 67 20 62 74 6e 20 22 41 | 75 64 69 6f 5f 4c 65 76 |g btn "A|udio_Lev|
|00006350| 65 6c 22 20 2d 20 74 68 | 65 20 63 6c 69 63 6b 48 |el" - th|e clickH|
|00006360| 29 20 69 6e 74 6f 20 6f | 6c 64 56 6f 6c 75 6d 65 |) into o|ldVolume|
|00006370| 0d 65 6c 73 65 0d 70 75 | 74 20 30 20 69 6e 74 6f |.else.pu|t 0 into|
|00006380| 20 6f 6c 64 56 6f 6c 75 | 6d 65 0d 65 6e 64 20 69 | oldVolu|me.end i|
|00006390| 66 0d 72 65 70 65 61 74 | 20 77 68 69 6c 65 20 74 |f.repeat| while t|
|000063a0| 72 75 65 0d 70 75 74 20 | 6d 69 6e 28 73 6c 69 64 |rue.put |min(slid|
|000063b0| 65 72 4d 61 78 2c 28 6d | 61 78 28 73 6c 69 64 65 |erMax,(m|ax(slide|
|000063c0| 72 4d 69 6e 2c 74 68 65 | 20 6d 6f 75 73 65 48 20 |rMin,the| mouseH |
|000063d0| 2b 20 6f 6c 64 56 6f 6c | 75 6d 65 29 29 29 20 69 |+ oldVol|ume))) i|
|000063e0| 6e 74 6f 20 6e 65 77 56 | 6f 6c 75 6d 65 0d 73 65 |nto newV|olume.se|
|000063f0| 74 20 74 68 65 20 6c 6f | 63 20 6f 66 20 62 67 20 |t the lo|c of bg |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.